@autobe/agent 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.js +11 -4
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +6 -6
- 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 -643
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/index.mjs +5057 -7211
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +82 -319
- 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 +95 -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 +56 -142
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +195 -199
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +75 -172
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +772 -1097
- 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 +64 -175
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +552 -1073
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +571 -1119
- 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 +109 -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 +337 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.d.ts +52 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js +57 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.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/orchestrateRealizeValidator.d.ts +46 -0
- package/lib/orchestrate/realize/orchestrateRealizeValidator.js +37 -0
- package/lib/orchestrate/realize/orchestrateRealizeValidator.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +33 -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 +150 -448
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +272 -530
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js +139 -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 +168 -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 +8 -7
- package/src/AutoBeAgent.ts +17 -3
- package/src/constants/AutoBeSystemPromptConstant.ts +6 -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 +169 -0
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +156 -0
- package/src/orchestrate/realize/orchestrateRealizeIntegrator.ts +75 -0
- package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
- package/src/orchestrate/realize/orchestrateRealizeValidator.ts +64 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +36 -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
|
`,
|
|
@@ -170,39 +170,42 @@ const claude = {
|
|
|
170
170
|
"reason"
|
|
171
171
|
],
|
|
172
172
|
additionalProperties: false,
|
|
173
|
-
$defs: {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
173
|
+
$defs: {
|
|
174
|
+
IAutoBeApplicationResult: {
|
|
175
|
+
type: "object",
|
|
176
|
+
properties: {
|
|
177
|
+
type: {
|
|
178
|
+
oneOf: [
|
|
179
|
+
{
|
|
180
|
+
"const": "success"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"const": "failure"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"const": "exception"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"const": "in-progress"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"const": "prerequisites-not-satisfied"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
192
195
|
},
|
|
193
|
-
{
|
|
194
|
-
|
|
196
|
+
description: {
|
|
197
|
+
type: "string"
|
|
195
198
|
}
|
|
199
|
+
},
|
|
200
|
+
required: [
|
|
201
|
+
"type",
|
|
202
|
+
"description"
|
|
196
203
|
]
|
|
197
|
-
},
|
|
198
|
-
description: {
|
|
199
|
-
type: "string"
|
|
200
204
|
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
output: {
|
|
208
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
206
209
|
},
|
|
207
210
|
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
211
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -254,39 +257,42 @@ const claude = {
|
|
|
254
257
|
"reason"
|
|
255
258
|
],
|
|
256
259
|
additionalProperties: false,
|
|
257
|
-
$defs: {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
260
|
+
$defs: {
|
|
261
|
+
IAutoBeApplicationResult: {
|
|
262
|
+
type: "object",
|
|
263
|
+
properties: {
|
|
264
|
+
type: {
|
|
265
|
+
oneOf: [
|
|
266
|
+
{
|
|
267
|
+
"const": "success"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"const": "failure"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"const": "exception"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"const": "in-progress"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"const": "prerequisites-not-satisfied"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
273
282
|
},
|
|
274
|
-
{
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"const": "prerequisites-not-satisfied"
|
|
283
|
+
description: {
|
|
284
|
+
type: "string"
|
|
279
285
|
}
|
|
286
|
+
},
|
|
287
|
+
required: [
|
|
288
|
+
"type",
|
|
289
|
+
"description"
|
|
280
290
|
]
|
|
281
|
-
},
|
|
282
|
-
description: {
|
|
283
|
-
type: "string"
|
|
284
291
|
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
]
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
output: {
|
|
295
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
290
296
|
},
|
|
291
297
|
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
298
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -338,39 +344,42 @@ const claude = {
|
|
|
338
344
|
"reason"
|
|
339
345
|
],
|
|
340
346
|
additionalProperties: false,
|
|
341
|
-
$defs: {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
347
|
+
$defs: {
|
|
348
|
+
IAutoBeApplicationResult: {
|
|
349
|
+
type: "object",
|
|
350
|
+
properties: {
|
|
351
|
+
type: {
|
|
352
|
+
oneOf: [
|
|
353
|
+
{
|
|
354
|
+
"const": "success"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"const": "failure"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"const": "exception"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"const": "in-progress"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"const": "prerequisites-not-satisfied"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
354
369
|
},
|
|
355
|
-
{
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"const": "in-progress"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"const": "prerequisites-not-satisfied"
|
|
370
|
+
description: {
|
|
371
|
+
type: "string"
|
|
363
372
|
}
|
|
373
|
+
},
|
|
374
|
+
required: [
|
|
375
|
+
"type",
|
|
376
|
+
"description"
|
|
364
377
|
]
|
|
365
|
-
},
|
|
366
|
-
description: {
|
|
367
|
-
type: "string"
|
|
368
378
|
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
]
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
output: {
|
|
382
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
374
383
|
},
|
|
375
384
|
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
385
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -422,39 +431,42 @@ const claude = {
|
|
|
422
431
|
"reason"
|
|
423
432
|
],
|
|
424
433
|
additionalProperties: false,
|
|
425
|
-
$defs: {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
434
|
+
$defs: {
|
|
435
|
+
IAutoBeApplicationResult: {
|
|
436
|
+
type: "object",
|
|
437
|
+
properties: {
|
|
438
|
+
type: {
|
|
439
|
+
oneOf: [
|
|
440
|
+
{
|
|
441
|
+
"const": "success"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"const": "failure"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"const": "exception"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"const": "in-progress"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"const": "prerequisites-not-satisfied"
|
|
454
|
+
}
|
|
455
|
+
]
|
|
435
456
|
},
|
|
436
|
-
{
|
|
437
|
-
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"const": "exception"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"const": "in-progress"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"const": "prerequisites-not-satisfied"
|
|
457
|
+
description: {
|
|
458
|
+
type: "string"
|
|
447
459
|
}
|
|
460
|
+
},
|
|
461
|
+
required: [
|
|
462
|
+
"type",
|
|
463
|
+
"description"
|
|
448
464
|
]
|
|
449
|
-
},
|
|
450
|
-
description: {
|
|
451
|
-
type: "string"
|
|
452
465
|
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
]
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
output: {
|
|
469
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
458
470
|
},
|
|
459
471
|
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
472
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -506,39 +518,42 @@ const claude = {
|
|
|
506
518
|
"reason"
|
|
507
519
|
],
|
|
508
520
|
additionalProperties: false,
|
|
509
|
-
$defs: {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
521
|
+
$defs: {
|
|
522
|
+
IAutoBeApplicationResult: {
|
|
523
|
+
type: "object",
|
|
524
|
+
properties: {
|
|
525
|
+
type: {
|
|
526
|
+
oneOf: [
|
|
527
|
+
{
|
|
528
|
+
"const": "success"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"const": "failure"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"const": "exception"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"const": "in-progress"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"const": "prerequisites-not-satisfied"
|
|
541
|
+
}
|
|
542
|
+
]
|
|
525
543
|
},
|
|
526
|
-
{
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"const": "prerequisites-not-satisfied"
|
|
544
|
+
description: {
|
|
545
|
+
type: "string"
|
|
531
546
|
}
|
|
547
|
+
},
|
|
548
|
+
required: [
|
|
549
|
+
"type",
|
|
550
|
+
"description"
|
|
532
551
|
]
|
|
533
|
-
},
|
|
534
|
-
description: {
|
|
535
|
-
type: "string"
|
|
536
552
|
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
]
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
output: {
|
|
556
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
542
557
|
},
|
|
543
558
|
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
559
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -601,30 +616,33 @@ const collection = {
|
|
|
601
616
|
"reason"
|
|
602
617
|
],
|
|
603
618
|
additionalProperties: false,
|
|
604
|
-
$defs: {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
619
|
+
$defs: {
|
|
620
|
+
IAutoBeApplicationResult: {
|
|
621
|
+
type: "object",
|
|
622
|
+
properties: {
|
|
623
|
+
type: {
|
|
624
|
+
type: "string",
|
|
625
|
+
"enum": [
|
|
626
|
+
"success",
|
|
627
|
+
"failure",
|
|
628
|
+
"exception",
|
|
629
|
+
"in-progress",
|
|
630
|
+
"prerequisites-not-satisfied"
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
description: {
|
|
634
|
+
type: "string"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
required: [
|
|
638
|
+
"type",
|
|
639
|
+
"description"
|
|
618
640
|
]
|
|
619
|
-
},
|
|
620
|
-
description: {
|
|
621
|
-
type: "string"
|
|
622
641
|
}
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
]
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
output: {
|
|
645
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
628
646
|
},
|
|
629
647
|
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
648
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -676,30 +694,33 @@ const collection = {
|
|
|
676
694
|
"reason"
|
|
677
695
|
],
|
|
678
696
|
additionalProperties: false,
|
|
679
|
-
$defs: {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
697
|
+
$defs: {
|
|
698
|
+
IAutoBeApplicationResult: {
|
|
699
|
+
type: "object",
|
|
700
|
+
properties: {
|
|
701
|
+
type: {
|
|
702
|
+
type: "string",
|
|
703
|
+
"enum": [
|
|
704
|
+
"success",
|
|
705
|
+
"failure",
|
|
706
|
+
"exception",
|
|
707
|
+
"in-progress",
|
|
708
|
+
"prerequisites-not-satisfied"
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
description: {
|
|
712
|
+
type: "string"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
required: [
|
|
716
|
+
"type",
|
|
717
|
+
"description"
|
|
693
718
|
]
|
|
694
|
-
},
|
|
695
|
-
description: {
|
|
696
|
-
type: "string"
|
|
697
719
|
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
]
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
output: {
|
|
723
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
703
724
|
},
|
|
704
725
|
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
726
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -751,30 +772,33 @@ const collection = {
|
|
|
751
772
|
"reason"
|
|
752
773
|
],
|
|
753
774
|
additionalProperties: false,
|
|
754
|
-
$defs: {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
775
|
+
$defs: {
|
|
776
|
+
IAutoBeApplicationResult: {
|
|
777
|
+
type: "object",
|
|
778
|
+
properties: {
|
|
779
|
+
type: {
|
|
780
|
+
type: "string",
|
|
781
|
+
"enum": [
|
|
782
|
+
"success",
|
|
783
|
+
"failure",
|
|
784
|
+
"exception",
|
|
785
|
+
"in-progress",
|
|
786
|
+
"prerequisites-not-satisfied"
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
description: {
|
|
790
|
+
type: "string"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
required: [
|
|
794
|
+
"type",
|
|
795
|
+
"description"
|
|
768
796
|
]
|
|
769
|
-
},
|
|
770
|
-
description: {
|
|
771
|
-
type: "string"
|
|
772
797
|
}
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
]
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
output: {
|
|
801
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
778
802
|
},
|
|
779
803
|
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
804
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -826,30 +850,33 @@ const collection = {
|
|
|
826
850
|
"reason"
|
|
827
851
|
],
|
|
828
852
|
additionalProperties: false,
|
|
829
|
-
$defs: {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
853
|
+
$defs: {
|
|
854
|
+
IAutoBeApplicationResult: {
|
|
855
|
+
type: "object",
|
|
856
|
+
properties: {
|
|
857
|
+
type: {
|
|
858
|
+
type: "string",
|
|
859
|
+
"enum": [
|
|
860
|
+
"success",
|
|
861
|
+
"failure",
|
|
862
|
+
"exception",
|
|
863
|
+
"in-progress",
|
|
864
|
+
"prerequisites-not-satisfied"
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
description: {
|
|
868
|
+
type: "string"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
required: [
|
|
872
|
+
"type",
|
|
873
|
+
"description"
|
|
843
874
|
]
|
|
844
|
-
},
|
|
845
|
-
description: {
|
|
846
|
-
type: "string"
|
|
847
875
|
}
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
]
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
output: {
|
|
879
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
853
880
|
},
|
|
854
881
|
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
882
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -901,30 +928,33 @@ const collection = {
|
|
|
901
928
|
"reason"
|
|
902
929
|
],
|
|
903
930
|
additionalProperties: false,
|
|
904
|
-
$defs: {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
931
|
+
$defs: {
|
|
932
|
+
IAutoBeApplicationResult: {
|
|
933
|
+
type: "object",
|
|
934
|
+
properties: {
|
|
935
|
+
type: {
|
|
936
|
+
type: "string",
|
|
937
|
+
"enum": [
|
|
938
|
+
"success",
|
|
939
|
+
"failure",
|
|
940
|
+
"exception",
|
|
941
|
+
"in-progress",
|
|
942
|
+
"prerequisites-not-satisfied"
|
|
943
|
+
]
|
|
944
|
+
},
|
|
945
|
+
description: {
|
|
946
|
+
type: "string"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
required: [
|
|
950
|
+
"type",
|
|
951
|
+
"description"
|
|
918
952
|
]
|
|
919
|
-
},
|
|
920
|
-
description: {
|
|
921
|
-
type: "string"
|
|
922
953
|
}
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
]
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
output: {
|
|
957
|
+
$ref: "#/$defs/IAutoBeApplicationResult"
|
|
928
958
|
},
|
|
929
959
|
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
960
|
validate: (() => { const _io0 = input => "string" === typeof input.reason; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reason || _report(_exceptionable, {
|
|
@@ -966,390 +996,5 @@ const collection = {
|
|
|
966
996
|
llama: claude,
|
|
967
997
|
deepseek: claude,
|
|
968
998
|
"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
999
|
};
|
|
1355
1000
|
//# sourceMappingURL=createAutoBeApplication.js.map
|