@autobe/agent 0.3.16 → 0.3.18
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/constants/AutoBeSystemPromptConstant.d.ts +3 -3
- package/lib/context/IAutoBeApplicationResult.d.ts +2 -1
- package/lib/factory/createAutoBeApplication.js +345 -50
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/index.mjs +362 -202
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +2 -47
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCompiler.d.ts +1 -3
- package/lib/orchestrate/prisma/orchestratePrismaCompiler.js +103 -106
- package/lib/orchestrate/prisma/orchestratePrismaCompiler.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaCompilerHistories.d.ts +2 -2
- package/lib/orchestrate/prisma/transformPrismaCompilerHistories.js +22 -24
- package/lib/orchestrate/prisma/transformPrismaCompilerHistories.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaHistories.js +1 -1
- package/lib/orchestrate/prisma/transformPrismaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.d.ts +6 -2
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +20 -17
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
- package/package.json +4 -4
- package/src/constants/AutoBeSystemPromptConstant.ts +3 -3
- package/src/context/IAutoBeApplicationResult.ts +7 -1
- package/src/factory/createAutoBeApplication.ts +86 -6
- package/src/orchestrate/prisma/orchestratePrisma.ts +3 -54
- package/src/orchestrate/prisma/orchestratePrismaCompiler.ts +164 -94
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +4 -2
- package/src/orchestrate/prisma/transformPrismaCompilerHistories.ts +22 -24
- package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +25 -17
|
@@ -32,6 +32,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
35
44
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
46
|
};
|
|
@@ -45,6 +54,7 @@ const orchestrateAnalyze_1 = require("../orchestrate/orchestrateAnalyze");
|
|
|
45
54
|
const orchestrateRealize_1 = require("../orchestrate/orchestrateRealize");
|
|
46
55
|
const orchestrateTest_1 = require("../orchestrate/orchestrateTest");
|
|
47
56
|
const orchestratePrisma_1 = require("../orchestrate/prisma/orchestratePrisma");
|
|
57
|
+
const StringUtil_1 = require("../utils/StringUtil");
|
|
48
58
|
const createAutoBeController = (props) => {
|
|
49
59
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
50
60
|
const application = collection[props.model];
|
|
@@ -53,11 +63,86 @@ const createAutoBeController = (props) => {
|
|
|
53
63
|
name: "autobe",
|
|
54
64
|
application,
|
|
55
65
|
execute: {
|
|
56
|
-
analyze: (0,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
analyze: (next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
|
+
const r = yield (0, orchestrateAnalyze_1.orchestrateAnalyze)(props.context)(next);
|
|
68
|
+
if (r.type === "analyze")
|
|
69
|
+
return {
|
|
70
|
+
type: "success",
|
|
71
|
+
description: "Analysis completed successfully, and report has been published.",
|
|
72
|
+
};
|
|
73
|
+
else
|
|
74
|
+
return {
|
|
75
|
+
type: "in-progress",
|
|
76
|
+
description: StringUtil_1.StringUtil.trim `
|
|
77
|
+
Requirements are not yet fully elicited,
|
|
78
|
+
therefore additional questions will be made to the user.
|
|
79
|
+
`,
|
|
80
|
+
};
|
|
81
|
+
}),
|
|
82
|
+
prisma: (next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
83
|
+
const r = yield (0, orchestratePrisma_1.orchestratePrisma)(props.context)(next);
|
|
84
|
+
if (r.type === "prisma")
|
|
85
|
+
return {
|
|
86
|
+
type: r.result.type,
|
|
87
|
+
description: r.result.type === "success"
|
|
88
|
+
? "Prisma schemas have been generated successfully."
|
|
89
|
+
: r.result.type === "failure"
|
|
90
|
+
? "Prisma schemas are generated, but compilation failed."
|
|
91
|
+
: "Unexpected error occurred while generating Prisma schemas.",
|
|
92
|
+
};
|
|
93
|
+
else
|
|
94
|
+
return {
|
|
95
|
+
type: "prerequisites-not-satisfied",
|
|
96
|
+
description: "Requirement analysis is not yet completed.",
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
interface: (next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
const r = yield (0, orchestrateInterface_1.orchestrateInterface)(props.context)(next);
|
|
101
|
+
if (r.type === "interface")
|
|
102
|
+
return {
|
|
103
|
+
type: "success",
|
|
104
|
+
description: "API interfaces have been designed successfully.",
|
|
105
|
+
};
|
|
106
|
+
else
|
|
107
|
+
return {
|
|
108
|
+
type: "prerequisites-not-satisfied",
|
|
109
|
+
description: "Prisma schemas are not yet completed.",
|
|
110
|
+
};
|
|
111
|
+
}),
|
|
112
|
+
test: (next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
|
+
const r = yield (0, orchestrateTest_1.orchestrateTest)(props.context)(next);
|
|
114
|
+
if (r.type === "test")
|
|
115
|
+
return {
|
|
116
|
+
type: r.result.type,
|
|
117
|
+
description: r.result.type === "success"
|
|
118
|
+
? "Test functions have been generated successfully."
|
|
119
|
+
: r.result.type === "failure"
|
|
120
|
+
? "Test functions are written, but compilation failed."
|
|
121
|
+
: "Unexpected error occurred while writing test functions.",
|
|
122
|
+
};
|
|
123
|
+
else
|
|
124
|
+
return {
|
|
125
|
+
type: "prerequisites-not-satisfied",
|
|
126
|
+
description: "API interfaces are not yet completed.",
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
realize: (next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
130
|
+
const r = yield (0, orchestrateRealize_1.orchestrateRealize)(props.context)(next);
|
|
131
|
+
if (r.type === "realize")
|
|
132
|
+
return {
|
|
133
|
+
type: r.result.type,
|
|
134
|
+
description: r.result.type === "success"
|
|
135
|
+
? "API implementation codes have been generated successfully."
|
|
136
|
+
: r.result.type === "failure"
|
|
137
|
+
? "Implementation codes are composed, but compilation failed."
|
|
138
|
+
: "Unexpected error occurred while writing implementation codes.",
|
|
139
|
+
};
|
|
140
|
+
else
|
|
141
|
+
return {
|
|
142
|
+
type: "prerequisites-not-satisfied",
|
|
143
|
+
description: "API interfaces are not yet completed.",
|
|
144
|
+
};
|
|
145
|
+
}),
|
|
61
146
|
},
|
|
62
147
|
};
|
|
63
148
|
};
|
|
@@ -96,12 +181,32 @@ const claude = {
|
|
|
96
181
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
97
182
|
type: "object",
|
|
98
183
|
properties: {
|
|
99
|
-
|
|
100
|
-
|
|
184
|
+
type: {
|
|
185
|
+
oneOf: [
|
|
186
|
+
{
|
|
187
|
+
"const": "success"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"const": "failure"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"const": "exception"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"const": "in-progress"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"const": "prerequisites-not-satisfied"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
description: {
|
|
204
|
+
type: "string"
|
|
101
205
|
}
|
|
102
206
|
},
|
|
103
207
|
required: [
|
|
104
|
-
"
|
|
208
|
+
"type",
|
|
209
|
+
"description"
|
|
105
210
|
]
|
|
106
211
|
},
|
|
107
212
|
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.",
|
|
@@ -169,12 +274,32 @@ const claude = {
|
|
|
169
274
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
170
275
|
type: "object",
|
|
171
276
|
properties: {
|
|
172
|
-
|
|
173
|
-
|
|
277
|
+
type: {
|
|
278
|
+
oneOf: [
|
|
279
|
+
{
|
|
280
|
+
"const": "success"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"const": "failure"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"const": "exception"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"const": "in-progress"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"const": "prerequisites-not-satisfied"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
description: {
|
|
297
|
+
type: "string"
|
|
174
298
|
}
|
|
175
299
|
},
|
|
176
300
|
required: [
|
|
177
|
-
"
|
|
301
|
+
"type",
|
|
302
|
+
"description"
|
|
178
303
|
]
|
|
179
304
|
},
|
|
180
305
|
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.",
|
|
@@ -242,12 +367,32 @@ const claude = {
|
|
|
242
367
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
243
368
|
type: "object",
|
|
244
369
|
properties: {
|
|
245
|
-
|
|
246
|
-
|
|
370
|
+
type: {
|
|
371
|
+
oneOf: [
|
|
372
|
+
{
|
|
373
|
+
"const": "success"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"const": "failure"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"const": "exception"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"const": "in-progress"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"const": "prerequisites-not-satisfied"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
description: {
|
|
390
|
+
type: "string"
|
|
247
391
|
}
|
|
248
392
|
},
|
|
249
393
|
required: [
|
|
250
|
-
"
|
|
394
|
+
"type",
|
|
395
|
+
"description"
|
|
251
396
|
]
|
|
252
397
|
},
|
|
253
398
|
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.",
|
|
@@ -315,12 +460,32 @@ const claude = {
|
|
|
315
460
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
316
461
|
type: "object",
|
|
317
462
|
properties: {
|
|
318
|
-
|
|
319
|
-
|
|
463
|
+
type: {
|
|
464
|
+
oneOf: [
|
|
465
|
+
{
|
|
466
|
+
"const": "success"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"const": "failure"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"const": "exception"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"const": "in-progress"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"const": "prerequisites-not-satisfied"
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
description: {
|
|
483
|
+
type: "string"
|
|
320
484
|
}
|
|
321
485
|
},
|
|
322
486
|
required: [
|
|
323
|
-
"
|
|
487
|
+
"type",
|
|
488
|
+
"description"
|
|
324
489
|
]
|
|
325
490
|
},
|
|
326
491
|
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.",
|
|
@@ -388,12 +553,32 @@ const claude = {
|
|
|
388
553
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
389
554
|
type: "object",
|
|
390
555
|
properties: {
|
|
391
|
-
|
|
392
|
-
|
|
556
|
+
type: {
|
|
557
|
+
oneOf: [
|
|
558
|
+
{
|
|
559
|
+
"const": "success"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"const": "failure"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"const": "exception"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"const": "in-progress"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"const": "prerequisites-not-satisfied"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
},
|
|
575
|
+
description: {
|
|
576
|
+
type: "string"
|
|
393
577
|
}
|
|
394
578
|
},
|
|
395
579
|
required: [
|
|
396
|
-
"
|
|
580
|
+
"type",
|
|
581
|
+
"description"
|
|
397
582
|
]
|
|
398
583
|
},
|
|
399
584
|
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.",
|
|
@@ -472,12 +657,23 @@ const collection = {
|
|
|
472
657
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
473
658
|
type: "object",
|
|
474
659
|
properties: {
|
|
475
|
-
|
|
476
|
-
type: "
|
|
660
|
+
type: {
|
|
661
|
+
type: "string",
|
|
662
|
+
"enum": [
|
|
663
|
+
"success",
|
|
664
|
+
"failure",
|
|
665
|
+
"exception",
|
|
666
|
+
"in-progress",
|
|
667
|
+
"prerequisites-not-satisfied"
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
description: {
|
|
671
|
+
type: "string"
|
|
477
672
|
}
|
|
478
673
|
},
|
|
479
674
|
required: [
|
|
480
|
-
"
|
|
675
|
+
"type",
|
|
676
|
+
"description"
|
|
481
677
|
]
|
|
482
678
|
},
|
|
483
679
|
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.",
|
|
@@ -545,12 +741,23 @@ const collection = {
|
|
|
545
741
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
546
742
|
type: "object",
|
|
547
743
|
properties: {
|
|
548
|
-
|
|
549
|
-
type: "
|
|
744
|
+
type: {
|
|
745
|
+
type: "string",
|
|
746
|
+
"enum": [
|
|
747
|
+
"success",
|
|
748
|
+
"failure",
|
|
749
|
+
"exception",
|
|
750
|
+
"in-progress",
|
|
751
|
+
"prerequisites-not-satisfied"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
description: {
|
|
755
|
+
type: "string"
|
|
550
756
|
}
|
|
551
757
|
},
|
|
552
758
|
required: [
|
|
553
|
-
"
|
|
759
|
+
"type",
|
|
760
|
+
"description"
|
|
554
761
|
]
|
|
555
762
|
},
|
|
556
763
|
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.",
|
|
@@ -618,12 +825,23 @@ const collection = {
|
|
|
618
825
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
619
826
|
type: "object",
|
|
620
827
|
properties: {
|
|
621
|
-
|
|
622
|
-
type: "
|
|
828
|
+
type: {
|
|
829
|
+
type: "string",
|
|
830
|
+
"enum": [
|
|
831
|
+
"success",
|
|
832
|
+
"failure",
|
|
833
|
+
"exception",
|
|
834
|
+
"in-progress",
|
|
835
|
+
"prerequisites-not-satisfied"
|
|
836
|
+
]
|
|
837
|
+
},
|
|
838
|
+
description: {
|
|
839
|
+
type: "string"
|
|
623
840
|
}
|
|
624
841
|
},
|
|
625
842
|
required: [
|
|
626
|
-
"
|
|
843
|
+
"type",
|
|
844
|
+
"description"
|
|
627
845
|
]
|
|
628
846
|
},
|
|
629
847
|
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.",
|
|
@@ -691,12 +909,23 @@ const collection = {
|
|
|
691
909
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
692
910
|
type: "object",
|
|
693
911
|
properties: {
|
|
694
|
-
|
|
695
|
-
type: "
|
|
912
|
+
type: {
|
|
913
|
+
type: "string",
|
|
914
|
+
"enum": [
|
|
915
|
+
"success",
|
|
916
|
+
"failure",
|
|
917
|
+
"exception",
|
|
918
|
+
"in-progress",
|
|
919
|
+
"prerequisites-not-satisfied"
|
|
920
|
+
]
|
|
921
|
+
},
|
|
922
|
+
description: {
|
|
923
|
+
type: "string"
|
|
696
924
|
}
|
|
697
925
|
},
|
|
698
926
|
required: [
|
|
699
|
-
"
|
|
927
|
+
"type",
|
|
928
|
+
"description"
|
|
700
929
|
]
|
|
701
930
|
},
|
|
702
931
|
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.",
|
|
@@ -764,12 +993,23 @@ const collection = {
|
|
|
764
993
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
765
994
|
type: "object",
|
|
766
995
|
properties: {
|
|
767
|
-
|
|
768
|
-
type: "
|
|
996
|
+
type: {
|
|
997
|
+
type: "string",
|
|
998
|
+
"enum": [
|
|
999
|
+
"success",
|
|
1000
|
+
"failure",
|
|
1001
|
+
"exception",
|
|
1002
|
+
"in-progress",
|
|
1003
|
+
"prerequisites-not-satisfied"
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
description: {
|
|
1007
|
+
type: "string"
|
|
769
1008
|
}
|
|
770
1009
|
},
|
|
771
1010
|
required: [
|
|
772
|
-
"
|
|
1011
|
+
"type",
|
|
1012
|
+
"description"
|
|
773
1013
|
]
|
|
774
1014
|
},
|
|
775
1015
|
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.",
|
|
@@ -849,12 +1089,23 @@ const collection = {
|
|
|
849
1089
|
output: {
|
|
850
1090
|
type: "object",
|
|
851
1091
|
properties: {
|
|
852
|
-
|
|
853
|
-
type: "
|
|
1092
|
+
type: {
|
|
1093
|
+
type: "string",
|
|
1094
|
+
"enum": [
|
|
1095
|
+
"success",
|
|
1096
|
+
"failure",
|
|
1097
|
+
"exception",
|
|
1098
|
+
"in-progress",
|
|
1099
|
+
"prerequisites-not-satisfied"
|
|
1100
|
+
]
|
|
1101
|
+
},
|
|
1102
|
+
description: {
|
|
1103
|
+
type: "string"
|
|
854
1104
|
}
|
|
855
1105
|
},
|
|
856
1106
|
required: [
|
|
857
|
-
"
|
|
1107
|
+
"type",
|
|
1108
|
+
"description"
|
|
858
1109
|
],
|
|
859
1110
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
860
1111
|
additionalProperties: false
|
|
@@ -922,12 +1173,23 @@ const collection = {
|
|
|
922
1173
|
output: {
|
|
923
1174
|
type: "object",
|
|
924
1175
|
properties: {
|
|
925
|
-
|
|
926
|
-
type: "
|
|
1176
|
+
type: {
|
|
1177
|
+
type: "string",
|
|
1178
|
+
"enum": [
|
|
1179
|
+
"success",
|
|
1180
|
+
"failure",
|
|
1181
|
+
"exception",
|
|
1182
|
+
"in-progress",
|
|
1183
|
+
"prerequisites-not-satisfied"
|
|
1184
|
+
]
|
|
1185
|
+
},
|
|
1186
|
+
description: {
|
|
1187
|
+
type: "string"
|
|
927
1188
|
}
|
|
928
1189
|
},
|
|
929
1190
|
required: [
|
|
930
|
-
"
|
|
1191
|
+
"type",
|
|
1192
|
+
"description"
|
|
931
1193
|
],
|
|
932
1194
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
933
1195
|
additionalProperties: false
|
|
@@ -995,12 +1257,23 @@ const collection = {
|
|
|
995
1257
|
output: {
|
|
996
1258
|
type: "object",
|
|
997
1259
|
properties: {
|
|
998
|
-
|
|
999
|
-
type: "
|
|
1260
|
+
type: {
|
|
1261
|
+
type: "string",
|
|
1262
|
+
"enum": [
|
|
1263
|
+
"success",
|
|
1264
|
+
"failure",
|
|
1265
|
+
"exception",
|
|
1266
|
+
"in-progress",
|
|
1267
|
+
"prerequisites-not-satisfied"
|
|
1268
|
+
]
|
|
1269
|
+
},
|
|
1270
|
+
description: {
|
|
1271
|
+
type: "string"
|
|
1000
1272
|
}
|
|
1001
1273
|
},
|
|
1002
1274
|
required: [
|
|
1003
|
-
"
|
|
1275
|
+
"type",
|
|
1276
|
+
"description"
|
|
1004
1277
|
],
|
|
1005
1278
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1006
1279
|
additionalProperties: false
|
|
@@ -1068,12 +1341,23 @@ const collection = {
|
|
|
1068
1341
|
output: {
|
|
1069
1342
|
type: "object",
|
|
1070
1343
|
properties: {
|
|
1071
|
-
|
|
1072
|
-
type: "
|
|
1344
|
+
type: {
|
|
1345
|
+
type: "string",
|
|
1346
|
+
"enum": [
|
|
1347
|
+
"success",
|
|
1348
|
+
"failure",
|
|
1349
|
+
"exception",
|
|
1350
|
+
"in-progress",
|
|
1351
|
+
"prerequisites-not-satisfied"
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
description: {
|
|
1355
|
+
type: "string"
|
|
1073
1356
|
}
|
|
1074
1357
|
},
|
|
1075
1358
|
required: [
|
|
1076
|
-
"
|
|
1359
|
+
"type",
|
|
1360
|
+
"description"
|
|
1077
1361
|
],
|
|
1078
1362
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1079
1363
|
additionalProperties: false
|
|
@@ -1141,12 +1425,23 @@ const collection = {
|
|
|
1141
1425
|
output: {
|
|
1142
1426
|
type: "object",
|
|
1143
1427
|
properties: {
|
|
1144
|
-
|
|
1145
|
-
type: "
|
|
1428
|
+
type: {
|
|
1429
|
+
type: "string",
|
|
1430
|
+
"enum": [
|
|
1431
|
+
"success",
|
|
1432
|
+
"failure",
|
|
1433
|
+
"exception",
|
|
1434
|
+
"in-progress",
|
|
1435
|
+
"prerequisites-not-satisfied"
|
|
1436
|
+
]
|
|
1437
|
+
},
|
|
1438
|
+
description: {
|
|
1439
|
+
type: "string"
|
|
1146
1440
|
}
|
|
1147
1441
|
},
|
|
1148
1442
|
required: [
|
|
1149
|
-
"
|
|
1443
|
+
"type",
|
|
1444
|
+
"description"
|
|
1150
1445
|
],
|
|
1151
1446
|
description: "Current Type: {@link IAutoBeApplicationResult}",
|
|
1152
1447
|
additionalProperties: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoBeApplication.js","sourceRoot":"","sources":["../../src/factory/createAutoBeApplication.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createAutoBeApplication.js","sourceRoot":"","sources":["../../src/factory/createAutoBeApplication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAI1B,oEAAiE;AACjE,wFAAqF;AACrF,0EAAuE;AACvE,0EAAuE;AACvE,oEAAiE;AACjE,+EAA4E;AAC5E,oDAAiD;AAE1C,MAAM,sBAAsB,GAAG,CAAiC,KAGtE,EAAqC,EAAE;IACtC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,OAAO;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