@autobe/agent 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/AutoBeAgent.js +27 -7
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +2 -4
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +11 -11
- package/lib/context/AutoBeContext.d.ts +4 -1
- package/lib/context/AutoBeTokenUsage.d.ts +1 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
- package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
- package/lib/factory/createAutoBeContext.d.ts +2 -1
- package/lib/factory/createAutoBeContext.js +78 -27
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +24065 -12997
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +166 -87
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +639 -322
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +146 -76
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +168 -4
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +1308 -0
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +15 -8
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +874 -49
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +251 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +257 -135
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +341 -227
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +761 -49
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +911 -50
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +207 -4
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +109 -2
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +5 -3
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1904 -77
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +23 -23
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +391 -197
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1168 -591
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1186 -600
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +6 -3
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +362 -180
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +399 -199
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +133 -4
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +171 -7
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +132 -3
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +2 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +134 -3
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +169 -4
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +257 -4
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -4
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +141 -3
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/utils/TokenUsageComputer.d.ts +5 -0
- package/lib/utils/TokenUsageComputer.js +29 -0
- package/lib/utils/TokenUsageComputer.js.map +1 -0
- package/package.json +10 -10
- package/src/AutoBeAgent.ts +40 -6
- package/src/AutoBeMockAgent.ts +2 -4
- package/src/constants/AutoBeSystemPromptConstant.ts +11 -11
- package/src/context/AutoBeContext.ts +8 -0
- package/src/context/AutoBeTokenUsage.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
- package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
- package/src/factory/createAutoBeContext.ts +96 -36
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +9 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +15 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +10 -11
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +20 -3
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +136 -0
- package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +17 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +16 -11
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +16 -13
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +19 -15
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +16 -2
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +11 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +24 -16
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +13 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +15 -10
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +9 -10
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +9 -11
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +2 -1
- package/src/orchestrate/realize/orchestrateRealize.ts +3 -2
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +14 -3
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +21 -6
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +13 -2
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTest.ts +3 -2
- package/src/orchestrate/test/orchestrateTestCorrect.ts +14 -2
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +21 -3
- package/src/orchestrate/test/orchestrateTestScenario.ts +13 -2
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +13 -2
- package/src/orchestrate/test/orchestrateTestWrite.ts +13 -2
- package/src/utils/TokenUsageComputer.ts +35 -0
- package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js +0 -942
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/src/factory/createAutoBeApplication.ts +0 -123
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
- /package/lib/orchestrate/facade/{transformFacadeStateMessage.js → structures/transformFacadeStateMessage.js} +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
|
@@ -63,7 +63,7 @@ function orchestrateRealizeWrite(ctx, props) {
|
|
|
63
63
|
value: null,
|
|
64
64
|
};
|
|
65
65
|
const dto = yield (0, getRealizeWriteDto_1.getRealizeWriteDto)(ctx, props.scenario.operation);
|
|
66
|
-
const { tokenUsage } = yield ctx.conversate({
|
|
66
|
+
const { metric, tokenUsage } = yield ctx.conversate({
|
|
67
67
|
source: "realizeWrite",
|
|
68
68
|
histories: (0, transformRealizeWriteHistories_1.transformRealizeWriteHistories)({
|
|
69
69
|
state: ctx.state(),
|
|
@@ -119,6 +119,7 @@ function orchestrateRealizeWrite(ctx, props) {
|
|
|
119
119
|
id: (0, uuid_1.v7)(),
|
|
120
120
|
location: props.scenario.location,
|
|
121
121
|
content: (_c = pointer.value.revise.final) !== null && _c !== void 0 ? _c : pointer.value.draft,
|
|
122
|
+
metric,
|
|
122
123
|
tokenUsage,
|
|
123
124
|
completed: ++props.progress.completed,
|
|
124
125
|
total: props.progress.total,
|
|
@@ -199,7 +200,11 @@ function createController(props) {
|
|
|
199
200
|
}
|
|
200
201
|
: result;
|
|
201
202
|
};
|
|
202
|
-
const application = collection[props.model === "chatgpt"
|
|
203
|
+
const application = collection[props.model === "chatgpt"
|
|
204
|
+
? "chatgpt"
|
|
205
|
+
: props.model === "gemini"
|
|
206
|
+
? "gemini"
|
|
207
|
+
: "claude"](validate);
|
|
203
208
|
return {
|
|
204
209
|
protocol: "class",
|
|
205
210
|
name: "Write code",
|
|
@@ -224,7 +229,7 @@ const collection = {
|
|
|
224
229
|
{
|
|
225
230
|
name: "write",
|
|
226
231
|
parameters: {
|
|
227
|
-
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}
|
|
232
|
+
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}",
|
|
228
233
|
type: "object",
|
|
229
234
|
properties: {
|
|
230
235
|
plan: {
|
|
@@ -236,6 +241,7 @@ const collection = {
|
|
|
236
241
|
type: "string"
|
|
237
242
|
},
|
|
238
243
|
revise: {
|
|
244
|
+
description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
|
|
239
245
|
$ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
|
|
240
246
|
}
|
|
241
247
|
},
|
|
@@ -458,5 +464,128 @@ const collection = {
|
|
|
458
464
|
}), { equals: false }));
|
|
459
465
|
return application;
|
|
460
466
|
})(),
|
|
467
|
+
gemini: (validate) => (() => {
|
|
468
|
+
const application = {
|
|
469
|
+
model: "gemini",
|
|
470
|
+
options: {
|
|
471
|
+
reference: true,
|
|
472
|
+
separate: null
|
|
473
|
+
},
|
|
474
|
+
functions: [
|
|
475
|
+
{
|
|
476
|
+
name: "write",
|
|
477
|
+
parameters: {
|
|
478
|
+
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}",
|
|
479
|
+
type: "object",
|
|
480
|
+
properties: {
|
|
481
|
+
plan: {
|
|
482
|
+
description: "Implementation plan and strategy.\n\nAnalyzes the provider function requirements, identifies related Prisma\nschemas, and outlines the implementation approach. Includes schema\nvalidation and API contract verification.",
|
|
483
|
+
type: "string"
|
|
484
|
+
},
|
|
485
|
+
draft: {
|
|
486
|
+
description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
|
|
487
|
+
type: "string"
|
|
488
|
+
},
|
|
489
|
+
revise: {
|
|
490
|
+
description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
|
|
491
|
+
$ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
required: [
|
|
495
|
+
"plan",
|
|
496
|
+
"draft",
|
|
497
|
+
"revise"
|
|
498
|
+
],
|
|
499
|
+
additionalProperties: false,
|
|
500
|
+
$defs: {
|
|
501
|
+
"IAutoBeRealizeWriteApplication.IReviseProps": {
|
|
502
|
+
type: "object",
|
|
503
|
+
properties: {
|
|
504
|
+
review: {
|
|
505
|
+
description: "Review and improvement suggestions.\n\nIdentifies areas for improvement in the draft code, including:\n\n- Type safety enhancements\n- Prisma query optimizations\n- Null/undefined handling corrections\n- Authentication/authorization improvements\n- Error handling refinements",
|
|
506
|
+
type: "string"
|
|
507
|
+
},
|
|
508
|
+
final: {
|
|
509
|
+
description: "Final implementation code.\n\nThe complete, production-ready implementation with all review suggestions\napplied.\n\nReturns `null` if the draft is already perfect and needs no changes.",
|
|
510
|
+
anyOf: [
|
|
511
|
+
{
|
|
512
|
+
type: "null"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
type: "string"
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
required: [
|
|
521
|
+
"review",
|
|
522
|
+
"final"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
description: "Generate complete provider function implementation using Chain of Thinking.\n\nFollows a 3-phase process: plan \u2192 draft \u2192 revise.\n\nEnsures type safety, proper Prisma usage, and API contract compliance.",
|
|
528
|
+
validate: (() => { const _io0 = input => "string" === typeof input.plan && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.plan || _report(_exceptionable, {
|
|
529
|
+
path: _path + ".plan",
|
|
530
|
+
expected: "string",
|
|
531
|
+
value: input.plan
|
|
532
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
533
|
+
path: _path + ".draft",
|
|
534
|
+
expected: "string",
|
|
535
|
+
value: input.draft
|
|
536
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
537
|
+
path: _path + ".revise",
|
|
538
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
539
|
+
value: input.revise
|
|
540
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
541
|
+
path: _path + ".revise",
|
|
542
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
543
|
+
value: input.revise
|
|
544
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
545
|
+
path: _path + ".review",
|
|
546
|
+
expected: "string",
|
|
547
|
+
value: input.review
|
|
548
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
549
|
+
path: _path + ".final",
|
|
550
|
+
expected: "(null | string)",
|
|
551
|
+
value: input.final
|
|
552
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
553
|
+
if (false === __is(input)) {
|
|
554
|
+
errors = [];
|
|
555
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
556
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
557
|
+
path: _path + "",
|
|
558
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
559
|
+
value: input
|
|
560
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
561
|
+
path: _path + "",
|
|
562
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
563
|
+
value: input
|
|
564
|
+
}))(input, "$input", true);
|
|
565
|
+
const success = 0 === errors.length;
|
|
566
|
+
return success ? {
|
|
567
|
+
success,
|
|
568
|
+
data: input
|
|
569
|
+
} : {
|
|
570
|
+
success,
|
|
571
|
+
errors,
|
|
572
|
+
data: input
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
return {
|
|
576
|
+
success: true,
|
|
577
|
+
data: input
|
|
578
|
+
};
|
|
579
|
+
}; })()
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
};
|
|
583
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
584
|
+
validate: {
|
|
585
|
+
write: validate,
|
|
586
|
+
},
|
|
587
|
+
}), { equals: false }));
|
|
588
|
+
return application;
|
|
589
|
+
})(),
|
|
461
590
|
};
|
|
462
591
|
//# sourceMappingURL=orchestrateRealizeWrite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,
|
|
1
|
+
{"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,0DAkFC;;;AAtGD,yCAA2C;AAQ3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,qEAAkE;AAClE,+FAA4F;AAG5F,mEAAgE;AAChE,6EAA0E;AAE1E,S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AC/D,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;aAChB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACkC;YAC9D,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;aAChB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACkC;YAC9D,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;aAChB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -11,91 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.replaceImportStatements = replaceImportStatements;
|
|
13
13
|
const getRealizeWriteImportStatements_1 = require("./getRealizeWriteImportStatements");
|
|
14
|
-
// /**
|
|
15
|
-
// * Removes all import statements that LLM might have incorrectly added. This
|
|
16
|
-
// * includes standard library imports, auto-injected imports, and any API
|
|
17
|
-
// * structure imports with wrong paths.
|
|
18
|
-
// *
|
|
19
|
-
// * @param code - The code containing imports to remove
|
|
20
|
-
// * @param typeReferences - List of type names to specifically remove
|
|
21
|
-
// * @param decoratorType - Optional decorator type to remove
|
|
22
|
-
// * @returns Code with all imports removed
|
|
23
|
-
// */
|
|
24
|
-
// function removeAllImports(
|
|
25
|
-
// code: string,
|
|
26
|
-
// typeReferences: string[],
|
|
27
|
-
// decoratorType?: string,
|
|
28
|
-
// ): string {
|
|
29
|
-
// // Remove standard library and auto-injected imports
|
|
30
|
-
// let cleanedCode = code
|
|
31
|
-
// // MyGlobal - often with wrong path
|
|
32
|
-
// .replace(
|
|
33
|
-
// /import\s*{\s*MyGlobal\s*}\s*from\s*["']\.\.\/MyGlobal["']\s*;?\s*/gm,
|
|
34
|
-
// "",
|
|
35
|
-
// )
|
|
36
|
-
// // typia - various import patterns
|
|
37
|
-
// .replace(
|
|
38
|
-
// /import\s+typia\s*,\s*{\s*tags\s*}\s*from\s*["']typia["']\s*;?\s*/gm,
|
|
39
|
-
// "",
|
|
40
|
-
// )
|
|
41
|
-
// .replace(/import\s*{\s*tags\s*}\s*from\s*["']typia["']\s*;?\s*/gm, "")
|
|
42
|
-
// .replace(
|
|
43
|
-
// /import\s*{\s*tags\s*,\s*typia\s*}\s*from\s*["']typia["']\s*;?\s*/gm,
|
|
44
|
-
// "",
|
|
45
|
-
// )
|
|
46
|
-
// .replace(/import\s+typia\s*from\s*["']typia["']\s*;?\s*/gm, "")
|
|
47
|
-
// // Prisma client
|
|
48
|
-
// .replace(
|
|
49
|
-
// /import\s*{\s*Prisma\s*}\s*from\s*["']@prisma\/client["']\s*;?\s*/gm,
|
|
50
|
-
// "",
|
|
51
|
-
// )
|
|
52
|
-
// // uuid
|
|
53
|
-
// .replace(/import\s*{\s*v4\s*}\s*from\s*["']uuid["']\s*;?\s*/gm, "")
|
|
54
|
-
// // toISOStringSafe utility
|
|
55
|
-
// .replace(
|
|
56
|
-
// /import\s*{\s*toISOStringSafe\s*}\s*from\s*["']\.\.\/utils\/toISOStringSafe["']\s*;?\s*/gm,
|
|
57
|
-
// "",
|
|
58
|
-
// )
|
|
59
|
-
// // JWT imports (if LLM adds them)
|
|
60
|
-
// .replace(/import\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "")
|
|
61
|
-
// .replace(
|
|
62
|
-
// /import\s*\*\s*as\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm,
|
|
63
|
-
// "",
|
|
64
|
-
// )
|
|
65
|
-
// // NestJS HttpException
|
|
66
|
-
// .replace(
|
|
67
|
-
// /import\s*{\s*HttpException\s*}\s*from\s*["']@nestjs\/common["']\s*;?\s*/gm,
|
|
68
|
-
// "",
|
|
69
|
-
// );
|
|
70
|
-
// // Remove API structure imports with wrong paths
|
|
71
|
-
// // Pattern 1: ../api/structures path (LLM often uses this wrong path)
|
|
72
|
-
// cleanedCode = cleanedCode.replace(
|
|
73
|
-
// /import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']\.\.\/api\/structures\/[^"']+["']\s*;?\s*/gm,
|
|
74
|
-
// "",
|
|
75
|
-
// );
|
|
76
|
-
// // Pattern 2: @ORGANIZATION/PROJECT-api path (correct path but LLM shouldn't write it)
|
|
77
|
-
// cleanedCode = cleanedCode.replace(
|
|
78
|
-
// /import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']@ORGANIZATION\/PROJECT-api\/lib\/structures\/[^"']+["']\s*;?\s*/gm,
|
|
79
|
-
// "",
|
|
80
|
-
// );
|
|
81
|
-
// // Remove specific type imports that match our typeReferences
|
|
82
|
-
// for (const ref of typeReferences) {
|
|
83
|
-
// const typeImportRegex = new RegExp(
|
|
84
|
-
// `import\\s*(?:type\\s*)?{\\s*${ref}\\s*}\\s*from\\s*["'][^"']+["']\\s*;?\\s*`,
|
|
85
|
-
// "gm",
|
|
86
|
-
// );
|
|
87
|
-
// cleanedCode = cleanedCode.replace(typeImportRegex, "");
|
|
88
|
-
// }
|
|
89
|
-
// // Remove decorator type imports if LLM mistakenly added them
|
|
90
|
-
// if (decoratorType) {
|
|
91
|
-
// const decoratorTypeRegex = new RegExp(
|
|
92
|
-
// `import\\s*(?:type\\s*)?{\\s*${decoratorType}\\s*}\\s*from\\s*["']\\.\\.\/decorators\/payload\/${decoratorType}["']\\s*;?\\s*`,
|
|
93
|
-
// "gm",
|
|
94
|
-
// );
|
|
95
|
-
// cleanedCode = cleanedCode.replace(decoratorTypeRegex, "");
|
|
96
|
-
// }
|
|
97
|
-
// return cleanedCode;
|
|
98
|
-
// }
|
|
99
14
|
function replaceImportStatements(ctx, props) {
|
|
100
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
16
|
let { code, decoratorType } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceImportStatements.js","sourceRoot":"","sources":["../../../../src/orchestrate/realize/utils/replaceImportStatements.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"replaceImportStatements.js","sourceRoot":"","sources":["../../../../src/orchestrate/realize/utils/replaceImportStatements.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,0DAwDC;AA1DD,uFAAoF;AAEpF,SAAsB,uBAAuB,CAC3C,GAAyB,EACzB,KAKC;;QAED,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;QAEpC,gDAAgD;QAChD,MAAM,QAAQ,GAAoB,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;QACvD,IAAI,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEhD,mCAAmC;QACnC,IAAI,GAAG,IAAI;aACR,KAAK,CAAC,MAAM,CAAC;aACb,IAAI,CAAC,IAAI,CAAC;aACV,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;aAC1D,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,6BAA6B;QAC7B,MAAM,OAAO,GAAG,IAAA,iEAA+B,EAAC,KAAK,CAAC,CAAC;QAEvD,6CAA6C;QAC7C,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,CACV,YAAY,aAAa,kCAAkC,aAAa,GAAG,CAC5E,CAAC;QACJ,CAAC;QAED,IAAI,GAAG,CAAC,GAAG,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzC,6BAA6B;QAC7B,IAAI;YACF,IAAI;gBACF,oCAAoC;iBACnC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;gBACvB,0DAA0D;iBACzD,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;gBAC3B,6CAA6C;iBAC5C,OAAO,CAAC,uCAAuC,EAAE,UAAU,CAAC;gBAC7D,0CAA0C;iBACzC,IAAI,EAAE,GAAG,IAAI,CAAC;QAEnB,oBAAoB;QACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAE5E,6BAA6B;QAC7B,IAAI,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEhD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;QAE5D,OAAO,IAAI,CAAC;IACd,CAAC;CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformTestWriteHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/test/histories/transformTestWriteHistories.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,kEA+GC;AA/HD,yCAAqE;AACrE,8CAK0B;AAC1B,+BAAiC;AACjC,kDAA0B;AAC1B,+BAA0B;AAI1B,wFAAqF;AAGrF,SAAsB,2BAA2B,CAG/C,GAAyB,EACzB,KAIC;;QAMD,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE;aACzB;YACD;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;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CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACzE,OAAO,kBAAU,CAAC,IAAI,CAAA;;;QAGlB,GAAG,CAAC,MAAM;aACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC/D,KAAK,CACN,CACF;aACA,IAAI,CAAC,IAAI,CAAC;;;QAGX,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC;;KAEhC,CAAC;IACJ,CAAC;IApBe,sCAAU,aAoBzB,CAAA;AACH,CAAC,EAlCgB,2BAA2B,2CAA3B,2BAA2B,QAkC3C;AAED,MAAM,YAAY,GAAG,IAAI,gBAAS,CAAC,GAAG,EAAE,CACtC,yt8JAAsC,OAAO,CAC3C,wBAAwB,EACxB,IAAI,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transformTestWriteHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/test/histories/transformTestWriteHistories.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,kEA+GC;AA/HD,yCAAqE;AACrE,8CAK0B;AAC1B,+BAAiC;AACjC,kDAA0B;AAC1B,+BAA0B;AAI1B,wFAAqF;AAGrF,SAAsB,2BAA2B,CAG/C,GAAyB,EACzB,KAIC;;QAMD,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE;aACzB;YACD;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAA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W,CAAC,QAAQ,CAAC,CAAC;QACzE,OAAO,kBAAU,CAAC,IAAI,CAAA;;;QAGlB,GAAG,CAAC,MAAM;aACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC/D,KAAK,CACN,CACF;aACA,IAAI,CAAC,IAAI,CAAC;;;QAGX,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC;;KAEhC,CAAC;IACJ,CAAC;IApBe,sCAAU,aAoBzB,CAAA;AACH,CAAC,EAlCgB,2BAA2B,2CAA3B,2BAA2B,QAkC3C;AAED,MAAM,YAAY,GAAG,IAAI,gBAAS,CAAC,GAAG,EAAE,CACtC,yt8JAAsC,OAAO,CAC3C,wBAAwB,EACxB,IAAI,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsD,CACrE,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AutoBeAssistantMessageHistory, AutoBeTestHistory } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
-
import { IAutoBeFacadeApplicationProps } from "
|
|
4
|
+
import { IAutoBeFacadeApplicationProps } from "../facade/histories/IAutoBeFacadeApplicationProps";
|
|
5
5
|
export declare const orchestrateTest: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>) => (props: IAutoBeFacadeApplicationProps) => Promise<AutoBeAssistantMessageHistory | AutoBeTestHistory>;
|
|
@@ -82,11 +82,12 @@ const orchestrateTest = (ctx) => (props) => __awaiter(void 0, void 0, void 0, fu
|
|
|
82
82
|
return ctx.dispatch({
|
|
83
83
|
type: "testComplete",
|
|
84
84
|
id: (0, uuid_1.v7)(),
|
|
85
|
-
created_at: new Date().toISOString(),
|
|
86
85
|
files: corrects.map((s) => s.file),
|
|
87
86
|
compiled: compileResult,
|
|
87
|
+
aggregates: ctx.getCurrentAggregates("test"),
|
|
88
88
|
step: (_f = (_e = ctx.state().interface) === null || _e === void 0 ? void 0 : _e.step) !== null && _f !== void 0 ? _f : 0,
|
|
89
89
|
elapsed: new Date().getTime() - start.getTime(),
|
|
90
|
+
created_at: new Date().toISOString(),
|
|
90
91
|
});
|
|
91
92
|
});
|
|
92
93
|
exports.orchestrateTest = orchestrateTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTest.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,+BAA0B;
|
|
1
|
+
{"version":3,"file":"orchestrateTest.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,+BAA0B;AAG1B,6EAA0E;AAE1E,qEAAkE;AAClE,uEAAoE;AACpE,iEAA8D;AAGvD,MAAM,eAAe,GAC1B,CAAiC,GAAyB,EAAE,EAAE,CAC9D,CACE,KAAoC,EACwB,EAAE;;IAC9D,cAAc;IACd,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAkB,IAAA,6CAAqB,EAAC,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IAC5E,IAAI,SAAS,KAAK,IAAI;QACpB,OAAO,GAAG,CAAC,gBAAgB,CAAC;YAC1B,IAAI,EAAE,kBAAkB;YACxB,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,KAAK,CAAC,WAAW,EAAE;YAC/B,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;S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AC5C,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,SAAS,0CAAE,IAAI,mCAAI,CAAC;QACtC,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE;QAC/C,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACrC,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AA1FS,QAAA,eAAe,mBA0FxB"}
|
|
@@ -81,6 +81,7 @@ const orchestrateTestCorrect = (ctx, props) => __awaiter(void 0, void 0, void 0,
|
|
|
81
81
|
},
|
|
82
82
|
result: next.failure,
|
|
83
83
|
tokenUsage: next.tokenUsage,
|
|
84
|
+
metric: next.metric,
|
|
84
85
|
think: next.think,
|
|
85
86
|
draft: next.draft,
|
|
86
87
|
review: next.review,
|
|
@@ -141,7 +142,7 @@ const correct = (ctx, props, life) => __awaiter(void 0, void 0, void 0, function
|
|
|
141
142
|
const pointer = {
|
|
142
143
|
value: null,
|
|
143
144
|
};
|
|
144
|
-
const { tokenUsage } = yield ctx.conversate({
|
|
145
|
+
const { metric, tokenUsage } = yield ctx.conversate({
|
|
145
146
|
source: "testCorrect",
|
|
146
147
|
histories: yield (0, transformTestCorrectHistories_1.transformTestCorrectHistories)(ctx, {
|
|
147
148
|
instruction: props.instruction,
|
|
@@ -183,6 +184,7 @@ const correct = (ctx, props, life) => __awaiter(void 0, void 0, void 0, function
|
|
|
183
184
|
created_at: new Date().toISOString(),
|
|
184
185
|
file: props.validate.file,
|
|
185
186
|
result: props.validate.result,
|
|
187
|
+
metric,
|
|
186
188
|
tokenUsage,
|
|
187
189
|
step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
|
|
188
190
|
think: pointer.value.think,
|
|
@@ -276,7 +278,11 @@ const createController = (props) => {
|
|
|
276
278
|
}
|
|
277
279
|
: result;
|
|
278
280
|
};
|
|
279
|
-
const application = collection[props.model === "chatgpt"
|
|
281
|
+
const application = collection[props.model === "chatgpt"
|
|
282
|
+
? "chatgpt"
|
|
283
|
+
: props.model === "gemini"
|
|
284
|
+
? "gemini"
|
|
285
|
+
: "claude"](validate);
|
|
280
286
|
return {
|
|
281
287
|
protocol: "class",
|
|
282
288
|
name: "correct",
|
|
@@ -301,7 +307,7 @@ const collection = {
|
|
|
301
307
|
{
|
|
302
308
|
name: "rewrite",
|
|
303
309
|
parameters: {
|
|
304
|
-
description: " Complete specification for error correction workflow including\nanalysis steps, draft implementation, review process, and final code\ngeneration\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestCorrectApplication.IProps}
|
|
310
|
+
description: " Complete specification for error correction workflow including\nanalysis steps, draft implementation, review process, and final code\ngeneration\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestCorrectApplication.IProps}",
|
|
305
311
|
type: "object",
|
|
306
312
|
properties: {
|
|
307
313
|
think: {
|
|
@@ -313,6 +319,7 @@ const collection = {
|
|
|
313
319
|
type: "string"
|
|
314
320
|
},
|
|
315
321
|
revise: {
|
|
322
|
+
description: "Step 3-4: Review and finalization process.\n\nEncapsulates the review and final implementation phases into a single\nrevision process. This structured approach ensures systematic validation\nand refinement of the corrected code through comprehensive review\nfollowed by production-ready implementation.\n\nThe revision process maintains clear separation between review feedback\nand final deliverable while ensuring all corrections are properly\nvalidated and integrated.",
|
|
316
323
|
$ref: "#/$defs/IAutoBeTestCorrectApplication.IReviseProps"
|
|
317
324
|
}
|
|
318
325
|
},
|
|
@@ -537,5 +544,129 @@ const collection = {
|
|
|
537
544
|
}), { equals: false }));
|
|
538
545
|
return application;
|
|
539
546
|
})(),
|
|
547
|
+
gemini: (validate) => (() => {
|
|
548
|
+
const application = {
|
|
549
|
+
model: "gemini",
|
|
550
|
+
options: {
|
|
551
|
+
reference: true,
|
|
552
|
+
separate: null
|
|
553
|
+
},
|
|
554
|
+
functions: [
|
|
555
|
+
{
|
|
556
|
+
name: "rewrite",
|
|
557
|
+
parameters: {
|
|
558
|
+
description: " Complete specification for error correction workflow including\nanalysis steps, draft implementation, review process, and final code\ngeneration\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestCorrectApplication.IProps}",
|
|
559
|
+
type: "object",
|
|
560
|
+
properties: {
|
|
561
|
+
think: {
|
|
562
|
+
description: "Step 1: Deep compilation error analysis and correction strategy.\n\nAI performs comprehensive analysis of compilation errors to develop\ntargeted correction strategies. This step involves deep examination of\nerror messages, identification of error patterns, understanding root\ncauses, and planning systematic corrections.\n\nThe AI examines each compilation diagnostic to understand where the\nimplementation diverged from correct TypeScript usage, identifies the\nbusiness logic intent behind the failed code, and formulates strategies\nto fix errors while preserving the original test purpose. This analysis\ncorrelates error patterns with code structure to ensure corrections\naddress root causes rather than symptoms.\n\nThis deep analysis forms the foundation for all subsequent correction\nefforts, ensuring a methodical approach to resolving compilation issues.\n\nWorkflow: Error diagnostic analysis \u2192 Root cause identification \u2192\nCorrection strategy planning \u2192 Business logic preservation strategy",
|
|
563
|
+
type: "string"
|
|
564
|
+
},
|
|
565
|
+
draft: {
|
|
566
|
+
description: "Step 2: Draft corrected TypeScript E2E test code implementation.\n\nAI generates the first corrected version of the test code based on error\nanalysis and correction strategies. This draft addresses all identified\ncompilation errors while preserving the original business logic and test\nworkflow. The code is compilation-error-free and follows all established\nconventions.\n\nThe implementation incorporates lessons learned from error analysis to\nproduce properly typed, syntactically correct code that maintains the\nintended test functionality. All type safety requirements and framework\nconventions are followed in this corrected implementation.\n\nWorkflow: Error correction \u2192 TypeScript implementation \u2192 Functional\npreservation\n\nDO: Resolve all compilation errors while maintaining original test intent",
|
|
567
|
+
type: "string"
|
|
568
|
+
},
|
|
569
|
+
revise: {
|
|
570
|
+
description: "Step 3-4: Review and finalization process.\n\nEncapsulates the review and final implementation phases into a single\nrevision process. This structured approach ensures systematic validation\nand refinement of the corrected code through comprehensive review\nfollowed by production-ready implementation.\n\nThe revision process maintains clear separation between review feedback\nand final deliverable while ensuring all corrections are properly\nvalidated and integrated.",
|
|
571
|
+
$ref: "#/$defs/IAutoBeTestCorrectApplication.IReviseProps"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
required: [
|
|
575
|
+
"think",
|
|
576
|
+
"draft",
|
|
577
|
+
"revise"
|
|
578
|
+
],
|
|
579
|
+
additionalProperties: false,
|
|
580
|
+
$defs: {
|
|
581
|
+
"IAutoBeTestCorrectApplication.IReviseProps": {
|
|
582
|
+
description: "Revision properties for the final review and implementation phases.\n\nThis interface encapsulates the final two steps of the error correction\nworkflow, ensuring systematic review and production-ready code delivery.",
|
|
583
|
+
type: "object",
|
|
584
|
+
properties: {
|
|
585
|
+
review: {
|
|
586
|
+
description: "Step 3: Code review and correction validation.\n\nAI performs a comprehensive review of the corrected draft implementation,\nvalidating that all compilation errors have been resolved and that the\ncode maintains the original functionality. This review examines both\ntechnical correctness and business logic preservation.\n\nThe review process includes verification of TypeScript compilation\ncompatibility, API integration correctness, test workflow completeness,\nand adherence to all quality standards. Any remaining issues or potential\nimprovements are identified for incorporation into the final\nimplementation.\n\nWorkflow: Draft validation \u2192 Compilation verification \u2192 Functionality\nreview \u2192 Quality assessment",
|
|
587
|
+
type: "string"
|
|
588
|
+
},
|
|
589
|
+
final: {
|
|
590
|
+
description: "Step 4: Final production-ready corrected test code.\n\nAI produces the final, polished version of the corrected test code\nincorporating all review feedback and validation results. This code\nrepresents the completed error correction, guaranteed to compile\nsuccessfully while preserving all original test functionality and\nbusiness logic. When the draft correction already perfectly resolves all\nissues with no problems found during review, this value can be null,\nindicating no further refinement was necessary.\n\nThe final implementation resolves all compilation issues, maintains\nstrict type safety, follows all established conventions, and delivers a\nproduction-ready test that accurately validates the intended API\nbehaviors and user workflows. A null value signifies the draft correction\nwas already optimal and requires no modifications.\n\nWorkflow: Review integration \u2192 Final refinement \u2192 Production-ready\nimplementation (or null if draft needs no changes). This is the ultimate\ndeliverable that will replace the compilation-failed code when provided,\notherwise the draft correction is used as-is.",
|
|
591
|
+
anyOf: [
|
|
592
|
+
{
|
|
593
|
+
type: "null"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
type: "string"
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
required: [
|
|
602
|
+
"review",
|
|
603
|
+
"final"
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
description: "Main entry point for AI Function Call - analyzes compilation errors and\ngenerates corrected E2E test code.\n\nThe AI executes this function to perform the complete error correction\nworkflow: compilation error analysis \u2192 draft correction \u2192 code review \u2192\nfinal corrected implementation. This multi-step process ensures systematic\nerror resolution while preserving original test functionality and\nmaintaining code quality.\n\nThe corrector analyzes compilation diagnostics to identify specific issues,\ndevelops correction strategies, and produces corrected code through\niterative refinement with comprehensive review and validation.",
|
|
609
|
+
validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
|
|
610
|
+
path: _path + ".think",
|
|
611
|
+
expected: "string",
|
|
612
|
+
value: input.think
|
|
613
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
614
|
+
path: _path + ".draft",
|
|
615
|
+
expected: "string",
|
|
616
|
+
value: input.draft
|
|
617
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
618
|
+
path: _path + ".revise",
|
|
619
|
+
expected: "IAutoBeTestCorrectApplication.IReviseProps",
|
|
620
|
+
value: input.revise
|
|
621
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
622
|
+
path: _path + ".revise",
|
|
623
|
+
expected: "IAutoBeTestCorrectApplication.IReviseProps",
|
|
624
|
+
value: input.revise
|
|
625
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
626
|
+
path: _path + ".review",
|
|
627
|
+
expected: "string",
|
|
628
|
+
value: input.review
|
|
629
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
630
|
+
path: _path + ".final",
|
|
631
|
+
expected: "(null | string)",
|
|
632
|
+
value: input.final
|
|
633
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
634
|
+
if (false === __is(input)) {
|
|
635
|
+
errors = [];
|
|
636
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
637
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
638
|
+
path: _path + "",
|
|
639
|
+
expected: "IAutoBeTestCorrectApplication.IProps",
|
|
640
|
+
value: input
|
|
641
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
642
|
+
path: _path + "",
|
|
643
|
+
expected: "IAutoBeTestCorrectApplication.IProps",
|
|
644
|
+
value: input
|
|
645
|
+
}))(input, "$input", true);
|
|
646
|
+
const success = 0 === errors.length;
|
|
647
|
+
return success ? {
|
|
648
|
+
success,
|
|
649
|
+
data: input
|
|
650
|
+
} : {
|
|
651
|
+
success,
|
|
652
|
+
errors,
|
|
653
|
+
data: input
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
return {
|
|
657
|
+
success: true,
|
|
658
|
+
data: input
|
|
659
|
+
};
|
|
660
|
+
}; })()
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
};
|
|
664
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
665
|
+
validate: {
|
|
666
|
+
rewrite: validate,
|
|
667
|
+
},
|
|
668
|
+
}), { equals: false }));
|
|
669
|
+
return application;
|
|
670
|
+
})(),
|
|
540
671
|
};
|
|
541
672
|
//# sourceMappingURL=orchestrateTestCorrect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,yCAA2C;AAG3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,qEAAkE;AAClE,+FAA4F;AAC5F,iEAA8D;AAC9D,6FAA0F;AAC1F,uFAAoF;AACpF,iGAA8F;AAKvF,MAAM,sBAAsB,GAAG,CACpC,GAAyB,EACzB,KAGC,EACmC,EAAE;IACtC,MAAM,MAAM,GACV,MAAM,IAAA,uCAAkB,EACtB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAO,cAAc,EAAE,EAAE;QAClD,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,EAAE,CACjC,eAAe,CAAC,GAAG,kCACd,CAAC,KACJ,MAAM,IACN,CAAC;YACL,MAAM,CAAC,GACL,MAAM,IAAA,2EAAoC,EAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YAC9D,MAAM,CAAC,GACL,MAAM,IAAA,iEAA+B,EACnC,GAAG,EACH;gBACE,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;;oBAChB,OAAA,CAAC;wBACC,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,SAAS;wBACf,EAAE,EAAE,IAAA,SAAE,GAAE;wBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBACpC,IAAI,EAAE;4BACJ,QAAQ,EAAE,CAAC,CAAC,QAAQ;4BACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;4BACpB,OAAO,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,CAA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