@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.
Files changed (175) hide show
  1. package/lib/AutoBeAgent.js +11 -4
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +6 -6
  4. package/lib/context/AutoBeTokenUsage.d.ts +15 -1
  5. package/lib/context/AutoBeTokenUsage.js +56 -1
  6. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  7. package/lib/factory/createAutoBeApplication.js +288 -643
  8. package/lib/factory/createAutoBeApplication.js.map +1 -1
  9. package/lib/index.mjs +5057 -7211
  10. package/lib/index.mjs.map +1 -1
  11. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +82 -319
  12. package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
  13. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -1
  14. package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +1 -1
  15. package/lib/orchestrate/analyze/orchestrateAnalyze.js +95 -266
  16. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  17. package/lib/orchestrate/facade/transformFacadeStateMessage.js +2 -2
  18. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
  19. package/lib/orchestrate/index.d.ts +2 -2
  20. package/lib/orchestrate/index.js +4 -4
  21. package/lib/orchestrate/index.js.map +1 -1
  22. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +56 -142
  23. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  24. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +195 -199
  25. package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
  26. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +75 -172
  27. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  28. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +772 -1097
  29. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  30. package/lib/orchestrate/interface/transformInterfaceHistories.js +2 -0
  31. package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
  32. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +64 -175
  33. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  34. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +552 -1073
  35. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  36. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +571 -1119
  37. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
  38. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +9 -0
  39. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
  40. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +8 -0
  41. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
  42. package/lib/orchestrate/realize/orchestrateRealize.d.ts +11 -0
  43. package/lib/orchestrate/realize/orchestrateRealize.js +109 -0
  44. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  45. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +25 -0
  46. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +337 -0
  47. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
  48. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.d.ts +52 -0
  49. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js +57 -0
  50. package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js.map +1 -0
  51. package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +80 -0
  52. package/lib/orchestrate/realize/orchestrateRealizePlanner.js +53 -0
  53. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -0
  54. package/lib/orchestrate/realize/orchestrateRealizeValidator.d.ts +46 -0
  55. package/lib/orchestrate/realize/orchestrateRealizeValidator.js +37 -0
  56. package/lib/orchestrate/realize/orchestrateRealizeValidator.js.map +1 -0
  57. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +33 -0
  58. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +3 -0
  59. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
  60. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +5 -0
  61. package/lib/orchestrate/realize/transformRealizeCoderHistories.js +127 -0
  62. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -0
  63. package/lib/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  64. package/lib/orchestrate/test/compile/completeTestCode.js +21 -0
  65. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  66. package/lib/orchestrate/test/{filterTestFileName.js → compile/filterTestFileName.js} +1 -1
  67. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  68. package/lib/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  69. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +27 -0
  70. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  71. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  72. package/lib/orchestrate/test/{compileTestScenario.js → compile/getTestScenarioArtifacts.js} +10 -5
  73. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  74. package/lib/orchestrate/test/orchestrateTest.js +14 -9
  75. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  76. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +3 -2
  77. package/lib/orchestrate/test/orchestrateTestCorrect.js +150 -448
  78. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  79. package/lib/orchestrate/test/orchestrateTestScenario.js +272 -530
  80. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  81. package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
  82. package/lib/orchestrate/test/orchestrateTestWrite.js +139 -90
  83. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  84. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
  85. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js +3 -0
  86. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  87. package/lib/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  88. package/lib/{utils/types/BackoffOptions.js → orchestrate/test/structures/IAutoBeTestFunction.js} +1 -1
  89. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  90. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +14 -2
  91. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +112 -0
  92. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js +3 -0
  93. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  94. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  95. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js +3 -0
  96. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  97. package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +3 -2
  98. package/lib/orchestrate/test/transformTestCorrectHistories.js +28 -67
  99. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
  100. package/lib/orchestrate/test/transformTestWriteHistories.d.ts +5 -4
  101. package/lib/orchestrate/test/transformTestWriteHistories.js +168 -43
  102. package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -1
  103. package/lib/structures/IAutoBeConfig.d.ts +11 -0
  104. package/lib/utils/backoffRetry.d.ts +4 -7
  105. package/lib/utils/backoffRetry.js +19 -37
  106. package/lib/utils/backoffRetry.js.map +1 -1
  107. package/lib/utils/forceRetry.d.ts +1 -0
  108. package/lib/{orchestrate/orchestrateRealize.js → utils/forceRetry.js} +15 -8
  109. package/lib/utils/forceRetry.js.map +1 -0
  110. package/package.json +8 -7
  111. package/src/AutoBeAgent.ts +17 -3
  112. package/src/constants/AutoBeSystemPromptConstant.ts +6 -6
  113. package/src/context/AutoBeTokenUsage.ts +85 -1
  114. package/src/factory/createAutoBeApplication.ts +2 -3
  115. package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +8 -3
  116. package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -1
  117. package/src/orchestrate/analyze/orchestrateAnalyze.ts +6 -5
  118. package/src/orchestrate/facade/transformFacadeStateMessage.ts +2 -1
  119. package/src/orchestrate/index.ts +2 -2
  120. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +4 -3
  121. package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +26 -23
  122. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +6 -4
  123. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +14 -11
  124. package/src/orchestrate/interface/transformInterfaceHistories.ts +2 -0
  125. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +10 -5
  126. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +11 -5
  127. package/src/orchestrate/prisma/orchestratePrismaSchema.ts +16 -8
  128. package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +9 -0
  129. package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +8 -0
  130. package/src/orchestrate/realize/orchestrateRealize.ts +169 -0
  131. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +156 -0
  132. package/src/orchestrate/realize/orchestrateRealizeIntegrator.ts +75 -0
  133. package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
  134. package/src/orchestrate/realize/orchestrateRealizeValidator.ts +64 -0
  135. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +36 -0
  136. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +136 -0
  137. package/src/orchestrate/test/compile/completeTestCode.ts +35 -0
  138. package/src/orchestrate/test/{filterTestFileName.ts → compile/filterTestFileName.ts} +1 -1
  139. package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +24 -0
  140. package/src/orchestrate/test/{compileTestScenario.ts → compile/getTestScenarioArtifacts.ts} +16 -8
  141. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +240 -0
  142. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +316 -0
  143. package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -0
  144. package/src/orchestrate/test/orchestrateTest.ts +33 -16
  145. package/src/orchestrate/test/orchestrateTestCorrect.ts +109 -497
  146. package/src/orchestrate/test/orchestrateTestScenario.ts +102 -71
  147. package/src/orchestrate/test/orchestrateTestWrite.ts +55 -181
  148. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +126 -0
  149. package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -0
  150. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +14 -2
  151. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +117 -0
  152. package/src/orchestrate/test/structures/IAutoBeTestWriteResult.ts +9 -0
  153. package/src/orchestrate/test/transformTestCorrectHistories.ts +38 -71
  154. package/src/orchestrate/test/transformTestWriteHistories.ts +88 -46
  155. package/src/structures/IAutoBeConfig.ts +9 -0
  156. package/src/utils/backoffRetry.ts +25 -36
  157. package/src/utils/forceRetry.ts +13 -0
  158. package/lib/factory/invertOpenApiDocument.d.ts +0 -3
  159. package/lib/factory/invertOpenApiDocument.js +0 -51
  160. package/lib/factory/invertOpenApiDocument.js.map +0 -1
  161. package/lib/orchestrate/orchestrateRealize.d.ts +0 -5
  162. package/lib/orchestrate/orchestrateRealize.js.map +0 -1
  163. package/lib/orchestrate/test/compileTestScenario.d.ts +0 -5
  164. package/lib/orchestrate/test/compileTestScenario.js.map +0 -1
  165. package/lib/orchestrate/test/filterTestFileName.js.map +0 -1
  166. package/lib/utils/StringUtil.d.ts +0 -4
  167. package/lib/utils/StringUtil.js +0 -43
  168. package/lib/utils/StringUtil.js.map +0 -1
  169. package/lib/utils/types/BackoffOptions.d.ts +0 -12
  170. package/lib/utils/types/BackoffOptions.js.map +0 -1
  171. package/src/factory/invertOpenApiDocument.ts +0 -63
  172. package/src/orchestrate/orchestrateRealize.ts +0 -18
  173. package/src/utils/StringUtil.ts +0 -45
  174. package/src/utils/types/BackoffOptions.ts +0 -15
  175. /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: StringUtil_1.StringUtil.trim `
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
- output: {
176
- description: "Current Type: {@link IAutoBeApplicationResult}",
177
- type: "object",
178
- properties: {
179
- type: {
180
- oneOf: [
181
- {
182
- "const": "success"
183
- },
184
- {
185
- "const": "failure"
186
- },
187
- {
188
- "const": "exception"
189
- },
190
- {
191
- "const": "in-progress"
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
- "const": "prerequisites-not-satisfied"
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
- required: [
203
- "type",
204
- "description"
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
- output: {
260
- description: "Current Type: {@link IAutoBeApplicationResult}",
261
- type: "object",
262
- properties: {
263
- type: {
264
- oneOf: [
265
- {
266
- "const": "success"
267
- },
268
- {
269
- "const": "failure"
270
- },
271
- {
272
- "const": "exception"
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
- "const": "in-progress"
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
- required: [
287
- "type",
288
- "description"
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
- output: {
344
- description: "Current Type: {@link IAutoBeApplicationResult}",
345
- type: "object",
346
- properties: {
347
- type: {
348
- oneOf: [
349
- {
350
- "const": "success"
351
- },
352
- {
353
- "const": "failure"
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
- "const": "exception"
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
- required: [
371
- "type",
372
- "description"
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
- output: {
428
- description: "Current Type: {@link IAutoBeApplicationResult}",
429
- type: "object",
430
- properties: {
431
- type: {
432
- oneOf: [
433
- {
434
- "const": "success"
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
- "const": "failure"
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
- required: [
455
- "type",
456
- "description"
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
- output: {
512
- description: "Current Type: {@link IAutoBeApplicationResult}",
513
- type: "object",
514
- properties: {
515
- type: {
516
- oneOf: [
517
- {
518
- "const": "success"
519
- },
520
- {
521
- "const": "failure"
522
- },
523
- {
524
- "const": "exception"
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
- "const": "in-progress"
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
- required: [
539
- "type",
540
- "description"
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
- output: {
607
- description: "Current Type: {@link IAutoBeApplicationResult}",
608
- type: "object",
609
- properties: {
610
- type: {
611
- type: "string",
612
- "enum": [
613
- "success",
614
- "failure",
615
- "exception",
616
- "in-progress",
617
- "prerequisites-not-satisfied"
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
- required: [
625
- "type",
626
- "description"
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
- output: {
682
- description: "Current Type: {@link IAutoBeApplicationResult}",
683
- type: "object",
684
- properties: {
685
- type: {
686
- type: "string",
687
- "enum": [
688
- "success",
689
- "failure",
690
- "exception",
691
- "in-progress",
692
- "prerequisites-not-satisfied"
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
- required: [
700
- "type",
701
- "description"
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
- output: {
757
- description: "Current Type: {@link IAutoBeApplicationResult}",
758
- type: "object",
759
- properties: {
760
- type: {
761
- type: "string",
762
- "enum": [
763
- "success",
764
- "failure",
765
- "exception",
766
- "in-progress",
767
- "prerequisites-not-satisfied"
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
- required: [
775
- "type",
776
- "description"
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
- output: {
832
- description: "Current Type: {@link IAutoBeApplicationResult}",
833
- type: "object",
834
- properties: {
835
- type: {
836
- type: "string",
837
- "enum": [
838
- "success",
839
- "failure",
840
- "exception",
841
- "in-progress",
842
- "prerequisites-not-satisfied"
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
- required: [
850
- "type",
851
- "description"
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
- output: {
907
- description: "Current Type: {@link IAutoBeApplicationResult}",
908
- type: "object",
909
- properties: {
910
- type: {
911
- type: "string",
912
- "enum": [
913
- "success",
914
- "failure",
915
- "exception",
916
- "in-progress",
917
- "prerequisites-not-satisfied"
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
- required: [
925
- "type",
926
- "description"
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