@autobe/agent 0.9.2 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.js +11 -4
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +7 -6
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeTokenUsage.d.ts +15 -1
- package/lib/context/AutoBeTokenUsage.js +56 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/factory/createAutoBeApplication.js +288 -653
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/index.mjs +4225 -6681
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +80 -321
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +93 -266
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +2 -2
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/index.d.ts +2 -2
- package/lib/orchestrate/index.js +4 -4
- package/lib/orchestrate/index.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +54 -142
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +189 -201
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +71 -174
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +706 -1099
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/transformInterfaceHistories.js +2 -0
- package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +60 -177
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +502 -1073
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +519 -1125
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +9 -0
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +8 -0
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +11 -0
- package/lib/orchestrate/realize/orchestrateRealize.js +78 -0
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +25 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js +326 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +80 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js +53 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +39 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +3 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +5 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js +127 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -0
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +2 -0
- package/lib/orchestrate/test/compile/completeTestCode.js +21 -0
- package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/orchestrate/test/{filterTestFileName.js → compile/filterTestFileName.js} +1 -1
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +27 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
- package/lib/orchestrate/test/{compileTestScenario.js → compile/getTestScenarioArtifacts.js} +10 -5
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTest.js +14 -9
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +142 -448
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +258 -532
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js +124 -90
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
- package/lib/{utils/types/BackoffOptions.js → orchestrate/test/structures/IAutoBeTestFunction.js} +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +14 -2
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +112 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +3 -2
- package/lib/orchestrate/test/transformTestCorrectHistories.js +28 -67
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestWriteHistories.d.ts +5 -4
- package/lib/orchestrate/test/transformTestWriteHistories.js +161 -43
- package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -1
- package/lib/structures/IAutoBeConfig.d.ts +11 -0
- package/lib/utils/backoffRetry.d.ts +4 -7
- package/lib/utils/backoffRetry.js +19 -37
- package/lib/utils/backoffRetry.js.map +1 -1
- package/lib/utils/forceRetry.d.ts +1 -0
- package/lib/{orchestrate/orchestrateRealize.js → utils/forceRetry.js} +15 -8
- package/lib/utils/forceRetry.js.map +1 -0
- package/package.json +9 -12
- package/src/AutoBeAgent.ts +17 -3
- package/src/constants/AutoBeSystemPromptConstant.ts +7 -6
- package/src/context/AutoBeTokenUsage.ts +85 -1
- package/src/factory/createAutoBeApplication.ts +2 -3
- package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +8 -3
- package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -1
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +6 -5
- package/src/orchestrate/facade/transformFacadeStateMessage.ts +2 -1
- package/src/orchestrate/index.ts +2 -2
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +4 -3
- package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +26 -23
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +6 -4
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +14 -11
- package/src/orchestrate/interface/transformInterfaceHistories.ts +2 -0
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +10 -5
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +11 -5
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +16 -8
- package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +9 -0
- package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +8 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +129 -0
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +148 -0
- package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +46 -0
- package/src/orchestrate/realize/transformRealizeCoderHistories.ts +136 -0
- package/src/orchestrate/test/compile/completeTestCode.ts +35 -0
- package/src/orchestrate/test/{filterTestFileName.ts → compile/filterTestFileName.ts} +1 -1
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +24 -0
- package/src/orchestrate/test/{compileTestScenario.ts → compile/getTestScenarioArtifacts.ts} +16 -8
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +240 -0
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +316 -0
- package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -0
- package/src/orchestrate/test/orchestrateTest.ts +33 -16
- package/src/orchestrate/test/orchestrateTestCorrect.ts +109 -497
- package/src/orchestrate/test/orchestrateTestScenario.ts +102 -71
- package/src/orchestrate/test/orchestrateTestWrite.ts +55 -181
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +126 -0
- package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +14 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +117 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteResult.ts +9 -0
- package/src/orchestrate/test/transformTestCorrectHistories.ts +38 -71
- package/src/orchestrate/test/transformTestWriteHistories.ts +88 -46
- package/src/structures/IAutoBeConfig.ts +9 -0
- package/src/utils/backoffRetry.ts +25 -36
- package/src/utils/forceRetry.ts +13 -0
- package/lib/factory/invertOpenApiDocument.d.ts +0 -3
- package/lib/factory/invertOpenApiDocument.js +0 -51
- package/lib/factory/invertOpenApiDocument.js.map +0 -1
- package/lib/orchestrate/orchestrateRealize.d.ts +0 -5
- package/lib/orchestrate/orchestrateRealize.js.map +0 -1
- package/lib/orchestrate/test/compileTestScenario.d.ts +0 -5
- package/lib/orchestrate/test/compileTestScenario.js.map +0 -1
- package/lib/orchestrate/test/filterTestFileName.js.map +0 -1
- package/lib/utils/StringUtil.d.ts +0 -4
- package/lib/utils/StringUtil.js +0 -43
- package/lib/utils/StringUtil.js.map +0 -1
- package/lib/utils/types/BackoffOptions.d.ts +0 -12
- package/lib/utils/types/BackoffOptions.js.map +0 -1
- package/src/factory/invertOpenApiDocument.ts +0 -63
- package/src/orchestrate/orchestrateRealize.ts +0 -18
- package/src/utils/StringUtil.ts +0 -45
- package/src/utils/types/BackoffOptions.ts +0 -15
- /package/lib/orchestrate/test/{filterTestFileName.d.ts → compile/filterTestFileName.d.ts} +0 -0
|
@@ -47,14 +47,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.createAutoBeController = void 0;
|
|
49
49
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
50
|
+
const utils_1 = require("@autobe/utils");
|
|
50
51
|
const typia_1 = __importDefault(require("typia"));
|
|
51
52
|
const assertSchemaModel_1 = require("../context/assertSchemaModel");
|
|
52
53
|
const orchestrateAnalyze_1 = require("../orchestrate/analyze/orchestrateAnalyze");
|
|
53
54
|
const orchestrateInterface_1 = require("../orchestrate/interface/orchestrateInterface");
|
|
54
|
-
const orchestrateRealize_1 = require("../orchestrate/orchestrateRealize");
|
|
55
55
|
const orchestratePrisma_1 = require("../orchestrate/prisma/orchestratePrisma");
|
|
56
|
+
const orchestrateRealize_1 = require("../orchestrate/realize/orchestrateRealize");
|
|
56
57
|
const orchestrateTest_1 = require("../orchestrate/test/orchestrateTest");
|
|
57
|
-
const StringUtil_1 = require("../utils/StringUtil");
|
|
58
58
|
const createAutoBeController = (props) => {
|
|
59
59
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
60
60
|
const application = collection[props.model];
|
|
@@ -73,7 +73,7 @@ const createAutoBeController = (props) => {
|
|
|
73
73
|
else
|
|
74
74
|
return {
|
|
75
75
|
type: "in-progress",
|
|
76
|
-
description:
|
|
76
|
+
description: utils_1.StringUtil.trim `
|
|
77
77
|
Requirements are not yet fully elicited,
|
|
78
78
|
therefore additional questions will be made to the user.
|
|
79
79
|
`,
|
|
@@ -161,7 +161,6 @@ const claude = {
|
|
|
161
161
|
type: "object",
|
|
162
162
|
properties: {
|
|
163
163
|
reason: {
|
|
164
|
-
title: "The reason of the function call",
|
|
165
164
|
description: "The reason of the function call.",
|
|
166
165
|
type: "string"
|
|
167
166
|
}
|
|
@@ -170,39 +169,42 @@ const claude = {
|
|
|
170
169
|
"reason"
|
|
171
170
|
],
|
|
172
171
|
additionalProperties: false,
|
|
173
|
-
$defs: {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
172
|
+
$defs: {
|
|
173
|
+
IAutoBeApplicationResult: {
|
|
174
|
+
type: "object",
|
|
175
|
+
properties: {
|
|
176
|
+
type: {
|
|
177
|
+
oneOf: [
|
|
178
|
+
{
|
|
179
|
+
"const": "success"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"const": "failure"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"const": "exception"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"const": "in-progress"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"const": "prerequisites-not-satisfied"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
192
194
|
},
|
|
193
|
-
{
|
|
194
|
-
|
|
195
|
+
description: {
|
|
196
|
+
type: "string"
|
|
195
197
|
}
|
|
198
|
+
},
|
|
199
|
+
required: [
|
|
200
|
+
"type",
|
|
201
|
+
"description"
|
|
196
202
|
]
|
|
197
|
-
},
|
|
198
|
-
description: {
|
|
199
|
-
type: "string"
|
|
200
203
|
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
output: {
|
|
207
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
206
208
|
},
|
|
207
209
|
description: "Run Analyze Agent.\n\nExecutes the Analyze agent to process user requirements and generate a\nstructured specification document. This agent analyzes all conversation\nhistory between users and AI, separates business logic from technical\nrequirements, and establishes development priorities and scope.\n\n**IMPORTANT**: Only call this function when sufficient requirements have\nbeen discussed to generate a comprehensive specification. The context must\ncontain enough detail about the system's purpose, core features, data\nmodels, and business rules. If requirements are unclear or incomplete,\ncontinue gathering information through conversation instead.\n\nThe agent will automatically generate follow-up questions for any ambiguous\nrequirements and continuously refine its understanding through iterative\nconversation. When executed after other agents have generated code, it can\nalso interpret change requests in the context of existing implementations.",
|
|
208
210
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -245,7 +247,6 @@ const claude = {
|
|
|
245
247
|
type: "object",
|
|
246
248
|
properties: {
|
|
247
249
|
reason: {
|
|
248
|
-
title: "The reason of the function call",
|
|
249
250
|
description: "The reason of the function call.",
|
|
250
251
|
type: "string"
|
|
251
252
|
}
|
|
@@ -254,39 +255,42 @@ const claude = {
|
|
|
254
255
|
"reason"
|
|
255
256
|
],
|
|
256
257
|
additionalProperties: false,
|
|
257
|
-
$defs: {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
258
|
+
$defs: {
|
|
259
|
+
IAutoBeApplicationResult: {
|
|
260
|
+
type: "object",
|
|
261
|
+
properties: {
|
|
262
|
+
type: {
|
|
263
|
+
oneOf: [
|
|
264
|
+
{
|
|
265
|
+
"const": "success"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"const": "failure"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"const": "exception"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"const": "in-progress"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"const": "prerequisites-not-satisfied"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
273
280
|
},
|
|
274
|
-
{
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"const": "prerequisites-not-satisfied"
|
|
281
|
+
description: {
|
|
282
|
+
type: "string"
|
|
279
283
|
}
|
|
284
|
+
},
|
|
285
|
+
required: [
|
|
286
|
+
"type",
|
|
287
|
+
"description"
|
|
280
288
|
]
|
|
281
|
-
},
|
|
282
|
-
description: {
|
|
283
|
-
type: "string"
|
|
284
289
|
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
]
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
output: {
|
|
293
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
290
294
|
},
|
|
291
295
|
description: "Run prisma agent.\n\nExecutes the Prisma agent to generate database schema files and ERD\ndocumentation. This agent reads the requirements specification created by\nthe {@link analyze Analyze agent} and produces a complete Prisma schema with\ncomprehensive documentation for each entity and attribute.\n\n**PREREQUISITE**: Only call this function after the {@link analyze} function\nhas been successfully executed and a requirements specification document\nhas been generated. The Prisma agent depends on the structured requirements\nanalysis to design the database schema properly. Without a completed\nrequirements specification, this function should NOT be called.\n\nThe agent will automatically validate the generated schema using the Prisma\ncompiler, self-correct any compilation errors through feedback loops, and\ngenerate ERD documentation using prisma-markdown. An internal review\nprocess ensures schema quality and optimization.",
|
|
292
296
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -329,7 +333,6 @@ const claude = {
|
|
|
329
333
|
type: "object",
|
|
330
334
|
properties: {
|
|
331
335
|
reason: {
|
|
332
|
-
title: "The reason of the function call",
|
|
333
336
|
description: "The reason of the function call.",
|
|
334
337
|
type: "string"
|
|
335
338
|
}
|
|
@@ -338,39 +341,42 @@ const claude = {
|
|
|
338
341
|
"reason"
|
|
339
342
|
],
|
|
340
343
|
additionalProperties: false,
|
|
341
|
-
$defs: {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
344
|
+
$defs: {
|
|
345
|
+
IAutoBeApplicationResult: {
|
|
346
|
+
type: "object",
|
|
347
|
+
properties: {
|
|
348
|
+
type: {
|
|
349
|
+
oneOf: [
|
|
350
|
+
{
|
|
351
|
+
"const": "success"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"const": "failure"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"const": "exception"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"const": "in-progress"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"const": "prerequisites-not-satisfied"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
351
366
|
},
|
|
352
|
-
{
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"const": "exception"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"const": "in-progress"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"const": "prerequisites-not-satisfied"
|
|
367
|
+
description: {
|
|
368
|
+
type: "string"
|
|
363
369
|
}
|
|
370
|
+
},
|
|
371
|
+
required: [
|
|
372
|
+
"type",
|
|
373
|
+
"description"
|
|
364
374
|
]
|
|
365
|
-
},
|
|
366
|
-
description: {
|
|
367
|
-
type: "string"
|
|
368
375
|
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
output: {
|
|
379
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
374
380
|
},
|
|
375
381
|
description: "Run interface agent.\n\nExecutes the Interface agent to design and generate API interfaces. This\nagent creates OpenAPI schemas and TypeScript/NestJS code based on the\nrequirements specification and ERD documentation from previous agents.\n\nThe agent follows a sophisticated pipeline: first constructing formal\nOpenAPI Operation Schemas and JSON Schemas, then validating these schemas,\nand finally transforming them into NestJS controllers and DTOs. Each\ngenerated interface includes comprehensive JSDoc comments and undergoes\ninternal review for consistency.",
|
|
376
382
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -413,7 +419,6 @@ const claude = {
|
|
|
413
419
|
type: "object",
|
|
414
420
|
properties: {
|
|
415
421
|
reason: {
|
|
416
|
-
title: "The reason of the function call",
|
|
417
422
|
description: "The reason of the function call.",
|
|
418
423
|
type: "string"
|
|
419
424
|
}
|
|
@@ -422,39 +427,42 @@ const claude = {
|
|
|
422
427
|
"reason"
|
|
423
428
|
],
|
|
424
429
|
additionalProperties: false,
|
|
425
|
-
$defs: {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
430
|
+
$defs: {
|
|
431
|
+
IAutoBeApplicationResult: {
|
|
432
|
+
type: "object",
|
|
433
|
+
properties: {
|
|
434
|
+
type: {
|
|
435
|
+
oneOf: [
|
|
436
|
+
{
|
|
437
|
+
"const": "success"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"const": "failure"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"const": "exception"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"const": "in-progress"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"const": "prerequisites-not-satisfied"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
441
452
|
},
|
|
442
|
-
{
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"const": "prerequisites-not-satisfied"
|
|
453
|
+
description: {
|
|
454
|
+
type: "string"
|
|
447
455
|
}
|
|
456
|
+
},
|
|
457
|
+
required: [
|
|
458
|
+
"type",
|
|
459
|
+
"description"
|
|
448
460
|
]
|
|
449
|
-
},
|
|
450
|
-
description: {
|
|
451
|
-
type: "string"
|
|
452
461
|
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
]
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
output: {
|
|
465
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
458
466
|
},
|
|
459
467
|
description: "Run test program agent.\n\nExecutes the Test agent to generate comprehensive E2E test suites for all\n{@link interface API interfaces}. This agent synthesizes outputs from\nprevious agents to create tests that validate both individual endpoints and\ntheir interactions.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Test agent requires the completed API interface definitions,\nOpenAPI schemas, and TypeScript code to generate appropriate test\nscenarios. Without completed interface design, this function should NOT be\ncalled.\n\nThe agent will analyze dependency relationships between API functions,\nstructure integrated test scenarios with correct execution sequences, and\nenhance pre-generated test scaffolds with business logic validation.\nTypeScript compiler validation and internal review ensure test quality and\noptimal coverage.",
|
|
460
468
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -497,7 +505,6 @@ const claude = {
|
|
|
497
505
|
type: "object",
|
|
498
506
|
properties: {
|
|
499
507
|
reason: {
|
|
500
|
-
title: "The reason of the function call",
|
|
501
508
|
description: "The reason of the function call.",
|
|
502
509
|
type: "string"
|
|
503
510
|
}
|
|
@@ -506,39 +513,42 @@ const claude = {
|
|
|
506
513
|
"reason"
|
|
507
514
|
],
|
|
508
515
|
additionalProperties: false,
|
|
509
|
-
$defs: {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
516
|
+
$defs: {
|
|
517
|
+
IAutoBeApplicationResult: {
|
|
518
|
+
type: "object",
|
|
519
|
+
properties: {
|
|
520
|
+
type: {
|
|
521
|
+
oneOf: [
|
|
522
|
+
{
|
|
523
|
+
"const": "success"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"const": "failure"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"const": "exception"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"const": "in-progress"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"const": "prerequisites-not-satisfied"
|
|
536
|
+
}
|
|
537
|
+
]
|
|
522
538
|
},
|
|
523
|
-
{
|
|
524
|
-
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"const": "in-progress"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"const": "prerequisites-not-satisfied"
|
|
539
|
+
description: {
|
|
540
|
+
type: "string"
|
|
531
541
|
}
|
|
542
|
+
},
|
|
543
|
+
required: [
|
|
544
|
+
"type",
|
|
545
|
+
"description"
|
|
532
546
|
]
|
|
533
|
-
},
|
|
534
|
-
description: {
|
|
535
|
-
type: "string"
|
|
536
547
|
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
]
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
output: {
|
|
551
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
542
552
|
},
|
|
543
553
|
description: "Run realize agent.\n\nExecutes the Realize agent to implement the actual business logic for each\nAPI endpoint. This agent synthesizes all outputs from previous agents to\ngenerate fully functional service provider code.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Realize agent requires the completed API interface\ndefinitions to implement the corresponding service logic. It also benefits\nfrom having test code available for validation. Without completed interface\ndesign, this function should NOT be called.\n\nThe agent will create service implementations with multiple validation\nlayers: TypeScript compiler feedback, runtime validation through test\nexecution, and quality optimization through internal review. The generated\ncode handles database interactions through Prisma, implements security and\nvalidation checks, and processes business rules according to\nspecifications.",
|
|
544
554
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -592,7 +602,6 @@ const collection = {
|
|
|
592
602
|
type: "object",
|
|
593
603
|
properties: {
|
|
594
604
|
reason: {
|
|
595
|
-
title: "The reason of the function call",
|
|
596
605
|
description: "The reason of the function call.",
|
|
597
606
|
type: "string"
|
|
598
607
|
}
|
|
@@ -601,30 +610,33 @@ const collection = {
|
|
|
601
610
|
"reason"
|
|
602
611
|
],
|
|
603
612
|
additionalProperties: false,
|
|
604
|
-
$defs: {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
613
|
+
$defs: {
|
|
614
|
+
IAutoBeApplicationResult: {
|
|
615
|
+
type: "object",
|
|
616
|
+
properties: {
|
|
617
|
+
type: {
|
|
618
|
+
type: "string",
|
|
619
|
+
"enum": [
|
|
620
|
+
"success",
|
|
621
|
+
"failure",
|
|
622
|
+
"exception",
|
|
623
|
+
"in-progress",
|
|
624
|
+
"prerequisites-not-satisfied"
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
description: {
|
|
628
|
+
type: "string"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
required: [
|
|
632
|
+
"type",
|
|
633
|
+
"description"
|
|
618
634
|
]
|
|
619
|
-
},
|
|
620
|
-
description: {
|
|
621
|
-
type: "string"
|
|
622
635
|
}
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
]
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
output: {
|
|
639
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
628
640
|
},
|
|
629
641
|
description: "Run Analyze Agent.\n\nExecutes the Analyze agent to process user requirements and generate a\nstructured specification document. This agent analyzes all conversation\nhistory between users and AI, separates business logic from technical\nrequirements, and establishes development priorities and scope.\n\n**IMPORTANT**: Only call this function when sufficient requirements have\nbeen discussed to generate a comprehensive specification. The context must\ncontain enough detail about the system's purpose, core features, data\nmodels, and business rules. If requirements are unclear or incomplete,\ncontinue gathering information through conversation instead.\n\nThe agent will automatically generate follow-up questions for any ambiguous\nrequirements and continuously refine its understanding through iterative\nconversation. When executed after other agents have generated code, it can\nalso interpret change requests in the context of existing implementations.",
|
|
630
642
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -667,7 +679,6 @@ const collection = {
|
|
|
667
679
|
type: "object",
|
|
668
680
|
properties: {
|
|
669
681
|
reason: {
|
|
670
|
-
title: "The reason of the function call",
|
|
671
682
|
description: "The reason of the function call.",
|
|
672
683
|
type: "string"
|
|
673
684
|
}
|
|
@@ -676,30 +687,33 @@ const collection = {
|
|
|
676
687
|
"reason"
|
|
677
688
|
],
|
|
678
689
|
additionalProperties: false,
|
|
679
|
-
$defs: {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
690
|
+
$defs: {
|
|
691
|
+
IAutoBeApplicationResult: {
|
|
692
|
+
type: "object",
|
|
693
|
+
properties: {
|
|
694
|
+
type: {
|
|
695
|
+
type: "string",
|
|
696
|
+
"enum": [
|
|
697
|
+
"success",
|
|
698
|
+
"failure",
|
|
699
|
+
"exception",
|
|
700
|
+
"in-progress",
|
|
701
|
+
"prerequisites-not-satisfied"
|
|
702
|
+
]
|
|
703
|
+
},
|
|
704
|
+
description: {
|
|
705
|
+
type: "string"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
required: [
|
|
709
|
+
"type",
|
|
710
|
+
"description"
|
|
693
711
|
]
|
|
694
|
-
},
|
|
695
|
-
description: {
|
|
696
|
-
type: "string"
|
|
697
712
|
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
]
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
output: {
|
|
716
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
703
717
|
},
|
|
704
718
|
description: "Run prisma agent.\n\nExecutes the Prisma agent to generate database schema files and ERD\ndocumentation. This agent reads the requirements specification created by\nthe {@link analyze Analyze agent} and produces a complete Prisma schema with\ncomprehensive documentation for each entity and attribute.\n\n**PREREQUISITE**: Only call this function after the {@link analyze} function\nhas been successfully executed and a requirements specification document\nhas been generated. The Prisma agent depends on the structured requirements\nanalysis to design the database schema properly. Without a completed\nrequirements specification, this function should NOT be called.\n\nThe agent will automatically validate the generated schema using the Prisma\ncompiler, self-correct any compilation errors through feedback loops, and\ngenerate ERD documentation using prisma-markdown. An internal review\nprocess ensures schema quality and optimization.",
|
|
705
719
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -742,7 +756,6 @@ const collection = {
|
|
|
742
756
|
type: "object",
|
|
743
757
|
properties: {
|
|
744
758
|
reason: {
|
|
745
|
-
title: "The reason of the function call",
|
|
746
759
|
description: "The reason of the function call.",
|
|
747
760
|
type: "string"
|
|
748
761
|
}
|
|
@@ -751,30 +764,33 @@ const collection = {
|
|
|
751
764
|
"reason"
|
|
752
765
|
],
|
|
753
766
|
additionalProperties: false,
|
|
754
|
-
$defs: {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
767
|
+
$defs: {
|
|
768
|
+
IAutoBeApplicationResult: {
|
|
769
|
+
type: "object",
|
|
770
|
+
properties: {
|
|
771
|
+
type: {
|
|
772
|
+
type: "string",
|
|
773
|
+
"enum": [
|
|
774
|
+
"success",
|
|
775
|
+
"failure",
|
|
776
|
+
"exception",
|
|
777
|
+
"in-progress",
|
|
778
|
+
"prerequisites-not-satisfied"
|
|
779
|
+
]
|
|
780
|
+
},
|
|
781
|
+
description: {
|
|
782
|
+
type: "string"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
required: [
|
|
786
|
+
"type",
|
|
787
|
+
"description"
|
|
768
788
|
]
|
|
769
|
-
},
|
|
770
|
-
description: {
|
|
771
|
-
type: "string"
|
|
772
789
|
}
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
]
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
output: {
|
|
793
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
778
794
|
},
|
|
779
795
|
description: "Run interface agent.\n\nExecutes the Interface agent to design and generate API interfaces. This\nagent creates OpenAPI schemas and TypeScript/NestJS code based on the\nrequirements specification and ERD documentation from previous agents.\n\nThe agent follows a sophisticated pipeline: first constructing formal\nOpenAPI Operation Schemas and JSON Schemas, then validating these schemas,\nand finally transforming them into NestJS controllers and DTOs. Each\ngenerated interface includes comprehensive JSDoc comments and undergoes\ninternal review for consistency.",
|
|
780
796
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -817,7 +833,6 @@ const collection = {
|
|
|
817
833
|
type: "object",
|
|
818
834
|
properties: {
|
|
819
835
|
reason: {
|
|
820
|
-
title: "The reason of the function call",
|
|
821
836
|
description: "The reason of the function call.",
|
|
822
837
|
type: "string"
|
|
823
838
|
}
|
|
@@ -826,30 +841,33 @@ const collection = {
|
|
|
826
841
|
"reason"
|
|
827
842
|
],
|
|
828
843
|
additionalProperties: false,
|
|
829
|
-
$defs: {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
844
|
+
$defs: {
|
|
845
|
+
IAutoBeApplicationResult: {
|
|
846
|
+
type: "object",
|
|
847
|
+
properties: {
|
|
848
|
+
type: {
|
|
849
|
+
type: "string",
|
|
850
|
+
"enum": [
|
|
851
|
+
"success",
|
|
852
|
+
"failure",
|
|
853
|
+
"exception",
|
|
854
|
+
"in-progress",
|
|
855
|
+
"prerequisites-not-satisfied"
|
|
856
|
+
]
|
|
857
|
+
},
|
|
858
|
+
description: {
|
|
859
|
+
type: "string"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
required: [
|
|
863
|
+
"type",
|
|
864
|
+
"description"
|
|
843
865
|
]
|
|
844
|
-
},
|
|
845
|
-
description: {
|
|
846
|
-
type: "string"
|
|
847
866
|
}
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
]
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
output: {
|
|
870
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
853
871
|
},
|
|
854
872
|
description: "Run test program agent.\n\nExecutes the Test agent to generate comprehensive E2E test suites for all\n{@link interface API interfaces}. This agent synthesizes outputs from\nprevious agents to create tests that validate both individual endpoints and\ntheir interactions.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Test agent requires the completed API interface definitions,\nOpenAPI schemas, and TypeScript code to generate appropriate test\nscenarios. Without completed interface design, this function should NOT be\ncalled.\n\nThe agent will analyze dependency relationships between API functions,\nstructure integrated test scenarios with correct execution sequences, and\nenhance pre-generated test scaffolds with business logic validation.\nTypeScript compiler validation and internal review ensure test quality and\noptimal coverage.",
|
|
855
873
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -892,7 +910,6 @@ const collection = {
|
|
|
892
910
|
type: "object",
|
|
893
911
|
properties: {
|
|
894
912
|
reason: {
|
|
895
|
-
title: "The reason of the function call",
|
|
896
913
|
description: "The reason of the function call.",
|
|
897
914
|
type: "string"
|
|
898
915
|
}
|
|
@@ -901,30 +918,33 @@ const collection = {
|
|
|
901
918
|
"reason"
|
|
902
919
|
],
|
|
903
920
|
additionalProperties: false,
|
|
904
|
-
$defs: {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
921
|
+
$defs: {
|
|
922
|
+
IAutoBeApplicationResult: {
|
|
923
|
+
type: "object",
|
|
924
|
+
properties: {
|
|
925
|
+
type: {
|
|
926
|
+
type: "string",
|
|
927
|
+
"enum": [
|
|
928
|
+
"success",
|
|
929
|
+
"failure",
|
|
930
|
+
"exception",
|
|
931
|
+
"in-progress",
|
|
932
|
+
"prerequisites-not-satisfied"
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
description: {
|
|
936
|
+
type: "string"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
required: [
|
|
940
|
+
"type",
|
|
941
|
+
"description"
|
|
918
942
|
]
|
|
919
|
-
},
|
|
920
|
-
description: {
|
|
921
|
-
type: "string"
|
|
922
943
|
}
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
]
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
output: {
|
|
947
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
928
948
|
},
|
|
929
949
|
description: "Run realize agent.\n\nExecutes the Realize agent to implement the actual business logic for each\nAPI endpoint. This agent synthesizes all outputs from previous agents to\ngenerate fully functional service provider code.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Realize agent requires the completed API interface\ndefinitions to implement the corresponding service logic. It also benefits\nfrom having test code available for validation. Without completed interface\ndesign, this function should NOT be called.\n\nThe agent will create service implementations with multiple validation\nlayers: TypeScript compiler feedback, runtime validation through test\nexecution, and quality optimization through internal review. The generated\ncode handles database interactions through Prisma, implements security and\nvalidation checks, and processes business rules according to\nspecifications.",
|
|
930
950
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -966,390 +986,5 @@ const collection = {
|
|
|
966
986
|
llama: claude,
|
|
967
987
|
deepseek: claude,
|
|
968
988
|
"3.1": claude,
|
|
969
|
-
"3.0": {
|
|
970
|
-
model: "3.0",
|
|
971
|
-
options: {
|
|
972
|
-
constraint: true,
|
|
973
|
-
recursive: 3,
|
|
974
|
-
separate: null
|
|
975
|
-
},
|
|
976
|
-
functions: [
|
|
977
|
-
{
|
|
978
|
-
name: "analyze",
|
|
979
|
-
parameters: {
|
|
980
|
-
type: "object",
|
|
981
|
-
properties: {
|
|
982
|
-
reason: {
|
|
983
|
-
type: "string",
|
|
984
|
-
title: "The reason of the function call",
|
|
985
|
-
description: "The reason of the function call."
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
required: [
|
|
989
|
-
"reason"
|
|
990
|
-
],
|
|
991
|
-
description: "Current Type: {@link IAutoBeApplicationProps}",
|
|
992
|
-
additionalProperties: false
|
|
993
|
-
},
|
|
994
|
-
output: {
|
|
995
|
-
type: "object",
|
|
996
|
-
properties: {
|
|
997
|
-
type: {
|
|
998
|
-
type: "string",
|
|
999
|
-
"enum": [
|
|
1000
|
-
"success",
|
|
1001
|
-
"failure",
|
|
1002
|
-
"exception",
|
|
1003
|
-
"in-progress",
|
|
1004
|
-
"prerequisites-not-satisfied"
|
|
1005
|
-
]
|
|
1006
|
-
},
|
|
1007
|
-
description: {
|
|
1008
|
-
type: "string"
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
required: [
|
|
1012
|
-
"type",
|
|
1013
|
-
"description"
|
|
1014
|
-
],
|
|
1015
|
-
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1016
|
-
additionalProperties: false
|
|
1017
|
-
},
|
|
1018
|
-
description: "Run Analyze Agent.\n\nExecutes the Analyze agent to process user requirements and generate a\nstructured specification document. This agent analyzes all conversation\nhistory between users and AI, separates business logic from technical\nrequirements, and establishes development priorities and scope.\n\n**IMPORTANT**: Only call this function when sufficient requirements have\nbeen discussed to generate a comprehensive specification. The context must\ncontain enough detail about the system's purpose, core features, data\nmodels, and business rules. If requirements are unclear or incomplete,\ncontinue gathering information through conversation instead.\n\nThe agent will automatically generate follow-up questions for any ambiguous\nrequirements and continuously refine its understanding through iterative\nconversation. When executed after other agents have generated code, it can\nalso interpret change requests in the context of existing implementations.",
|
|
1019
|
-
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
1020
|
-
path: _path + ".reason",
|
|
1021
|
-
expected: "string",
|
|
1022
|
-
value: input.reason
|
|
1023
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1024
|
-
if (false === __is(input)) {
|
|
1025
|
-
errors = [];
|
|
1026
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1027
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1028
|
-
path: _path + "",
|
|
1029
|
-
expected: "IAutoBeApplicationProps",
|
|
1030
|
-
value: input
|
|
1031
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1032
|
-
path: _path + "",
|
|
1033
|
-
expected: "IAutoBeApplicationProps",
|
|
1034
|
-
value: input
|
|
1035
|
-
}))(input, "$input", true);
|
|
1036
|
-
const success = 0 === errors.length;
|
|
1037
|
-
return success ? {
|
|
1038
|
-
success,
|
|
1039
|
-
data: input
|
|
1040
|
-
} : {
|
|
1041
|
-
success,
|
|
1042
|
-
errors,
|
|
1043
|
-
data: input
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
return {
|
|
1047
|
-
success: true,
|
|
1048
|
-
data: input
|
|
1049
|
-
};
|
|
1050
|
-
}; })()
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
name: "prisma",
|
|
1054
|
-
parameters: {
|
|
1055
|
-
type: "object",
|
|
1056
|
-
properties: {
|
|
1057
|
-
reason: {
|
|
1058
|
-
type: "string",
|
|
1059
|
-
title: "The reason of the function call",
|
|
1060
|
-
description: "The reason of the function call."
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
required: [
|
|
1064
|
-
"reason"
|
|
1065
|
-
],
|
|
1066
|
-
description: "Current Type: {@link IAutoBeApplicationProps}",
|
|
1067
|
-
additionalProperties: false
|
|
1068
|
-
},
|
|
1069
|
-
output: {
|
|
1070
|
-
type: "object",
|
|
1071
|
-
properties: {
|
|
1072
|
-
type: {
|
|
1073
|
-
type: "string",
|
|
1074
|
-
"enum": [
|
|
1075
|
-
"success",
|
|
1076
|
-
"failure",
|
|
1077
|
-
"exception",
|
|
1078
|
-
"in-progress",
|
|
1079
|
-
"prerequisites-not-satisfied"
|
|
1080
|
-
]
|
|
1081
|
-
},
|
|
1082
|
-
description: {
|
|
1083
|
-
type: "string"
|
|
1084
|
-
}
|
|
1085
|
-
},
|
|
1086
|
-
required: [
|
|
1087
|
-
"type",
|
|
1088
|
-
"description"
|
|
1089
|
-
],
|
|
1090
|
-
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1091
|
-
additionalProperties: false
|
|
1092
|
-
},
|
|
1093
|
-
description: "Run prisma agent.\n\nExecutes the Prisma agent to generate database schema files and ERD\ndocumentation. This agent reads the requirements specification created by\nthe {@link analyze Analyze agent} and produces a complete Prisma schema with\ncomprehensive documentation for each entity and attribute.\n\n**PREREQUISITE**: Only call this function after the {@link analyze} function\nhas been successfully executed and a requirements specification document\nhas been generated. The Prisma agent depends on the structured requirements\nanalysis to design the database schema properly. Without a completed\nrequirements specification, this function should NOT be called.\n\nThe agent will automatically validate the generated schema using the Prisma\ncompiler, self-correct any compilation errors through feedback loops, and\ngenerate ERD documentation using prisma-markdown. An internal review\nprocess ensures schema quality and optimization.",
|
|
1094
|
-
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
1095
|
-
path: _path + ".reason",
|
|
1096
|
-
expected: "string",
|
|
1097
|
-
value: input.reason
|
|
1098
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1099
|
-
if (false === __is(input)) {
|
|
1100
|
-
errors = [];
|
|
1101
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1102
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1103
|
-
path: _path + "",
|
|
1104
|
-
expected: "IAutoBeApplicationProps",
|
|
1105
|
-
value: input
|
|
1106
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1107
|
-
path: _path + "",
|
|
1108
|
-
expected: "IAutoBeApplicationProps",
|
|
1109
|
-
value: input
|
|
1110
|
-
}))(input, "$input", true);
|
|
1111
|
-
const success = 0 === errors.length;
|
|
1112
|
-
return success ? {
|
|
1113
|
-
success,
|
|
1114
|
-
data: input
|
|
1115
|
-
} : {
|
|
1116
|
-
success,
|
|
1117
|
-
errors,
|
|
1118
|
-
data: input
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
return {
|
|
1122
|
-
success: true,
|
|
1123
|
-
data: input
|
|
1124
|
-
};
|
|
1125
|
-
}; })()
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
name: "interface",
|
|
1129
|
-
parameters: {
|
|
1130
|
-
type: "object",
|
|
1131
|
-
properties: {
|
|
1132
|
-
reason: {
|
|
1133
|
-
type: "string",
|
|
1134
|
-
title: "The reason of the function call",
|
|
1135
|
-
description: "The reason of the function call."
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
required: [
|
|
1139
|
-
"reason"
|
|
1140
|
-
],
|
|
1141
|
-
description: "Current Type: {@link IAutoBeApplicationProps}",
|
|
1142
|
-
additionalProperties: false
|
|
1143
|
-
},
|
|
1144
|
-
output: {
|
|
1145
|
-
type: "object",
|
|
1146
|
-
properties: {
|
|
1147
|
-
type: {
|
|
1148
|
-
type: "string",
|
|
1149
|
-
"enum": [
|
|
1150
|
-
"success",
|
|
1151
|
-
"failure",
|
|
1152
|
-
"exception",
|
|
1153
|
-
"in-progress",
|
|
1154
|
-
"prerequisites-not-satisfied"
|
|
1155
|
-
]
|
|
1156
|
-
},
|
|
1157
|
-
description: {
|
|
1158
|
-
type: "string"
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
required: [
|
|
1162
|
-
"type",
|
|
1163
|
-
"description"
|
|
1164
|
-
],
|
|
1165
|
-
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1166
|
-
additionalProperties: false
|
|
1167
|
-
},
|
|
1168
|
-
description: "Run interface agent.\n\nExecutes the Interface agent to design and generate API interfaces. This\nagent creates OpenAPI schemas and TypeScript/NestJS code based on the\nrequirements specification and ERD documentation from previous agents.\n\nThe agent follows a sophisticated pipeline: first constructing formal\nOpenAPI Operation Schemas and JSON Schemas, then validating these schemas,\nand finally transforming them into NestJS controllers and DTOs. Each\ngenerated interface includes comprehensive JSDoc comments and undergoes\ninternal review for consistency.",
|
|
1169
|
-
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
1170
|
-
path: _path + ".reason",
|
|
1171
|
-
expected: "string",
|
|
1172
|
-
value: input.reason
|
|
1173
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1174
|
-
if (false === __is(input)) {
|
|
1175
|
-
errors = [];
|
|
1176
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1177
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1178
|
-
path: _path + "",
|
|
1179
|
-
expected: "IAutoBeApplicationProps",
|
|
1180
|
-
value: input
|
|
1181
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1182
|
-
path: _path + "",
|
|
1183
|
-
expected: "IAutoBeApplicationProps",
|
|
1184
|
-
value: input
|
|
1185
|
-
}))(input, "$input", true);
|
|
1186
|
-
const success = 0 === errors.length;
|
|
1187
|
-
return success ? {
|
|
1188
|
-
success,
|
|
1189
|
-
data: input
|
|
1190
|
-
} : {
|
|
1191
|
-
success,
|
|
1192
|
-
errors,
|
|
1193
|
-
data: input
|
|
1194
|
-
};
|
|
1195
|
-
}
|
|
1196
|
-
return {
|
|
1197
|
-
success: true,
|
|
1198
|
-
data: input
|
|
1199
|
-
};
|
|
1200
|
-
}; })()
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
name: "test",
|
|
1204
|
-
parameters: {
|
|
1205
|
-
type: "object",
|
|
1206
|
-
properties: {
|
|
1207
|
-
reason: {
|
|
1208
|
-
type: "string",
|
|
1209
|
-
title: "The reason of the function call",
|
|
1210
|
-
description: "The reason of the function call."
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
|
-
required: [
|
|
1214
|
-
"reason"
|
|
1215
|
-
],
|
|
1216
|
-
description: "Current Type: {@link IAutoBeApplicationProps}",
|
|
1217
|
-
additionalProperties: false
|
|
1218
|
-
},
|
|
1219
|
-
output: {
|
|
1220
|
-
type: "object",
|
|
1221
|
-
properties: {
|
|
1222
|
-
type: {
|
|
1223
|
-
type: "string",
|
|
1224
|
-
"enum": [
|
|
1225
|
-
"success",
|
|
1226
|
-
"failure",
|
|
1227
|
-
"exception",
|
|
1228
|
-
"in-progress",
|
|
1229
|
-
"prerequisites-not-satisfied"
|
|
1230
|
-
]
|
|
1231
|
-
},
|
|
1232
|
-
description: {
|
|
1233
|
-
type: "string"
|
|
1234
|
-
}
|
|
1235
|
-
},
|
|
1236
|
-
required: [
|
|
1237
|
-
"type",
|
|
1238
|
-
"description"
|
|
1239
|
-
],
|
|
1240
|
-
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1241
|
-
additionalProperties: false
|
|
1242
|
-
},
|
|
1243
|
-
description: "Run test program agent.\n\nExecutes the Test agent to generate comprehensive E2E test suites for all\n{@link interface API interfaces}. This agent synthesizes outputs from\nprevious agents to create tests that validate both individual endpoints and\ntheir interactions.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Test agent requires the completed API interface definitions,\nOpenAPI schemas, and TypeScript code to generate appropriate test\nscenarios. Without completed interface design, this function should NOT be\ncalled.\n\nThe agent will analyze dependency relationships between API functions,\nstructure integrated test scenarios with correct execution sequences, and\nenhance pre-generated test scaffolds with business logic validation.\nTypeScript compiler validation and internal review ensure test quality and\noptimal coverage.",
|
|
1244
|
-
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
1245
|
-
path: _path + ".reason",
|
|
1246
|
-
expected: "string",
|
|
1247
|
-
value: input.reason
|
|
1248
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1249
|
-
if (false === __is(input)) {
|
|
1250
|
-
errors = [];
|
|
1251
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1252
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1253
|
-
path: _path + "",
|
|
1254
|
-
expected: "IAutoBeApplicationProps",
|
|
1255
|
-
value: input
|
|
1256
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1257
|
-
path: _path + "",
|
|
1258
|
-
expected: "IAutoBeApplicationProps",
|
|
1259
|
-
value: input
|
|
1260
|
-
}))(input, "$input", true);
|
|
1261
|
-
const success = 0 === errors.length;
|
|
1262
|
-
return success ? {
|
|
1263
|
-
success,
|
|
1264
|
-
data: input
|
|
1265
|
-
} : {
|
|
1266
|
-
success,
|
|
1267
|
-
errors,
|
|
1268
|
-
data: input
|
|
1269
|
-
};
|
|
1270
|
-
}
|
|
1271
|
-
return {
|
|
1272
|
-
success: true,
|
|
1273
|
-
data: input
|
|
1274
|
-
};
|
|
1275
|
-
}; })()
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
name: "realize",
|
|
1279
|
-
parameters: {
|
|
1280
|
-
type: "object",
|
|
1281
|
-
properties: {
|
|
1282
|
-
reason: {
|
|
1283
|
-
type: "string",
|
|
1284
|
-
title: "The reason of the function call",
|
|
1285
|
-
description: "The reason of the function call."
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
required: [
|
|
1289
|
-
"reason"
|
|
1290
|
-
],
|
|
1291
|
-
description: "Current Type: {@link IAutoBeApplicationProps}",
|
|
1292
|
-
additionalProperties: false
|
|
1293
|
-
},
|
|
1294
|
-
output: {
|
|
1295
|
-
type: "object",
|
|
1296
|
-
properties: {
|
|
1297
|
-
type: {
|
|
1298
|
-
type: "string",
|
|
1299
|
-
"enum": [
|
|
1300
|
-
"success",
|
|
1301
|
-
"failure",
|
|
1302
|
-
"exception",
|
|
1303
|
-
"in-progress",
|
|
1304
|
-
"prerequisites-not-satisfied"
|
|
1305
|
-
]
|
|
1306
|
-
},
|
|
1307
|
-
description: {
|
|
1308
|
-
type: "string"
|
|
1309
|
-
}
|
|
1310
|
-
},
|
|
1311
|
-
required: [
|
|
1312
|
-
"type",
|
|
1313
|
-
"description"
|
|
1314
|
-
],
|
|
1315
|
-
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1316
|
-
additionalProperties: false
|
|
1317
|
-
},
|
|
1318
|
-
description: "Run realize agent.\n\nExecutes the Realize agent to implement the actual business logic for each\nAPI endpoint. This agent synthesizes all outputs from previous agents to\ngenerate fully functional service provider code.\n\n**PREREQUISITE**: Only call this function after the {@link interface}\nfunction has been successfully executed and API interfaces have been\ngenerated. The Realize agent requires the completed API interface\ndefinitions to implement the corresponding service logic. It also benefits\nfrom having test code available for validation. Without completed interface\ndesign, this function should NOT be called.\n\nThe agent will create service implementations with multiple validation\nlayers: TypeScript compiler feedback, runtime validation through test\nexecution, and quality optimization through internal review. The generated\ncode handles database interactions through Prisma, implements security and\nvalidation checks, and processes business rules according to\nspecifications.",
|
|
1319
|
-
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
1320
|
-
path: _path + ".reason",
|
|
1321
|
-
expected: "string",
|
|
1322
|
-
value: input.reason
|
|
1323
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1324
|
-
if (false === __is(input)) {
|
|
1325
|
-
errors = [];
|
|
1326
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1327
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1328
|
-
path: _path + "",
|
|
1329
|
-
expected: "IAutoBeApplicationProps",
|
|
1330
|
-
value: input
|
|
1331
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1332
|
-
path: _path + "",
|
|
1333
|
-
expected: "IAutoBeApplicationProps",
|
|
1334
|
-
value: input
|
|
1335
|
-
}))(input, "$input", true);
|
|
1336
|
-
const success = 0 === errors.length;
|
|
1337
|
-
return success ? {
|
|
1338
|
-
success,
|
|
1339
|
-
data: input
|
|
1340
|
-
} : {
|
|
1341
|
-
success,
|
|
1342
|
-
errors,
|
|
1343
|
-
data: input
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
1346
|
-
return {
|
|
1347
|
-
success: true,
|
|
1348
|
-
data: input
|
|
1349
|
-
};
|
|
1350
|
-
}; })()
|
|
1351
|
-
}
|
|
1352
|
-
]
|
|
1353
|
-
},
|
|
1354
989
|
};
|
|
1355
990
|
//# sourceMappingURL=createAutoBeApplication.js.map
|