@autobe/agent 0.25.3 → 0.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.js +2 -0
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +1 -1
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/factory/consentFunctionCall.js +2 -0
- package/lib/factory/consentFunctionCall.js.map +1 -1
- package/lib/factory/createAutoBeContext.js +2 -0
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/factory/supportMistral.d.ts +4 -0
- package/lib/factory/supportMistral.js +112 -0
- package/lib/factory/supportMistral.js.map +1 -0
- package/lib/index.mjs +1997 -1422
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +370 -275
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +370 -275
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +304 -221
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +303 -220
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +17 -22
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +372 -277
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +322 -350
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/utils/validateEmptyCode.d.ts +8 -0
- package/lib/utils/validateEmptyCode.js +35 -0
- package/lib/utils/validateEmptyCode.js.map +1 -0
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +2 -0
- package/src/AutoBeMockAgent.ts +1 -1
- package/src/factory/consentFunctionCall.ts +3 -0
- package/src/factory/createAutoBeContext.ts +2 -0
- package/src/factory/supportMistral.ts +122 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +52 -10
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +58 -17
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +51 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +46 -12
- package/src/orchestrate/test/orchestrateTestCorrect.ts +17 -24
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +57 -10
- package/src/orchestrate/test/orchestrateTestWrite.ts +41 -10
- package/src/utils/validateEmptyCode.ts +41 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestRateRealizeCorrectCasting.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestRateRealizeCorrectCasting.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,yCAA2C;AAQ3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,qEAAkE;AAElE,iHAA8G;AAC9G,wEAAqE;AAErE,qFAAkF;AAClF,6EAA0E;AAQnE,MAAM,gCAAgC,GAAG,2EASZ,EAAE,kHANpC,GAAyB,EACzB,SAAyC,EACzC,cAA4C,EAC5C,SAAkC,EAClC,QAAiC,EACjC,OAAe,GAAG,CAAC,KAAK;IAExB,MAAM,aAAa,GAA+B,MAAM,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC0C;YACvE,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,SAAS;iBAChB,CAAC;aACH;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC0C;YACtE,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,SAAS;iBAChB,CAAC;aACH;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -47,11 +47,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.orchestrateRealizeCorrect = orchestrateRealizeCorrect;
|
|
49
49
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
50
|
+
const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
|
|
50
51
|
const utils_1 = require("@autobe/utils");
|
|
51
52
|
const typia_1 = __importDefault(require("typia"));
|
|
52
53
|
const uuid_1 = require("uuid");
|
|
53
54
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
54
55
|
const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
|
|
56
|
+
const validateEmptyCode_1 = require("../../utils/validateEmptyCode");
|
|
55
57
|
const transformRealizeCorrectHistories_1 = require("./histories/transformRealizeCorrectHistories");
|
|
56
58
|
const compileRealizeFiles_1 = require("./internal/compileRealizeFiles");
|
|
57
59
|
const filterDiagnostics_1 = require("./utils/filterDiagnostics");
|
|
@@ -89,7 +91,7 @@ function orchestrateRealizeCorrect(ctx_1, scenarios_1, authorizations_1, functio
|
|
|
89
91
|
return;
|
|
90
92
|
if (!diagnosticsByFile[location]) {
|
|
91
93
|
const func = functions.find((f) => f.location === location);
|
|
92
|
-
if (
|
|
94
|
+
if (func === undefined) {
|
|
93
95
|
return;
|
|
94
96
|
}
|
|
95
97
|
const failure = {
|
|
@@ -156,6 +158,7 @@ function step(ctx, props) {
|
|
|
156
158
|
source: "realizeCorrect",
|
|
157
159
|
controller: createController({
|
|
158
160
|
model: ctx.model,
|
|
161
|
+
functionName: props.scenario.functionName,
|
|
159
162
|
build: (next) => {
|
|
160
163
|
pointer.value = next;
|
|
161
164
|
},
|
|
@@ -224,7 +227,75 @@ function step(ctx, props) {
|
|
|
224
227
|
}
|
|
225
228
|
function createController(props) {
|
|
226
229
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
227
|
-
const
|
|
230
|
+
const validate = (input) => {
|
|
231
|
+
const result = (() => { 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, {
|
|
232
|
+
path: _path + ".think",
|
|
233
|
+
expected: "string",
|
|
234
|
+
value: input.think
|
|
235
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
236
|
+
path: _path + ".draft",
|
|
237
|
+
expected: "string",
|
|
238
|
+
value: input.draft
|
|
239
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
240
|
+
path: _path + ".revise",
|
|
241
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
242
|
+
value: input.revise
|
|
243
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
244
|
+
path: _path + ".revise",
|
|
245
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
246
|
+
value: input.revise
|
|
247
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
248
|
+
path: _path + ".review",
|
|
249
|
+
expected: "string",
|
|
250
|
+
value: input.review
|
|
251
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
252
|
+
path: _path + ".final",
|
|
253
|
+
expected: "(null | string)",
|
|
254
|
+
value: input.final
|
|
255
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
256
|
+
if (false === __is(input)) {
|
|
257
|
+
errors = [];
|
|
258
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
259
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
260
|
+
path: _path + "",
|
|
261
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
262
|
+
value: input
|
|
263
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
264
|
+
path: _path + "",
|
|
265
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
266
|
+
value: input
|
|
267
|
+
}))(input, "$input", true);
|
|
268
|
+
const success = 0 === errors.length;
|
|
269
|
+
return success ? {
|
|
270
|
+
success,
|
|
271
|
+
data: input
|
|
272
|
+
} : {
|
|
273
|
+
success,
|
|
274
|
+
errors,
|
|
275
|
+
data: input
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
return {
|
|
279
|
+
success: true,
|
|
280
|
+
data: input
|
|
281
|
+
};
|
|
282
|
+
}; })()(input);
|
|
283
|
+
if (result.success === false)
|
|
284
|
+
return result;
|
|
285
|
+
const errors = (0, validateEmptyCode_1.validateEmptyCode)({
|
|
286
|
+
functionName: props.functionName,
|
|
287
|
+
draft: result.data.draft,
|
|
288
|
+
revise: result.data.revise,
|
|
289
|
+
});
|
|
290
|
+
return errors.length
|
|
291
|
+
? {
|
|
292
|
+
success: false,
|
|
293
|
+
errors,
|
|
294
|
+
data: result.data,
|
|
295
|
+
}
|
|
296
|
+
: result;
|
|
297
|
+
};
|
|
298
|
+
const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
|
|
228
299
|
return {
|
|
229
300
|
protocol: "class",
|
|
230
301
|
name: "Write code",
|
|
@@ -236,240 +307,252 @@ function createController(props) {
|
|
|
236
307
|
},
|
|
237
308
|
};
|
|
238
309
|
}
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
|
|
254
|
-
type: "string"
|
|
255
|
-
},
|
|
256
|
-
draft: {
|
|
257
|
-
description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
|
|
258
|
-
type: "string"
|
|
259
|
-
},
|
|
260
|
-
revise: {
|
|
261
|
-
description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
|
|
262
|
-
$ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
required: [
|
|
266
|
-
"think",
|
|
267
|
-
"draft",
|
|
268
|
-
"revise"
|
|
269
|
-
],
|
|
270
|
-
additionalProperties: false,
|
|
271
|
-
$defs: {
|
|
272
|
-
"IAutoBeRealizeCorrectApplication.IReviseProps": {
|
|
310
|
+
const collection = {
|
|
311
|
+
chatgpt: (validate) => (() => {
|
|
312
|
+
const application = {
|
|
313
|
+
model: "chatgpt",
|
|
314
|
+
options: {
|
|
315
|
+
reference: true,
|
|
316
|
+
strict: false,
|
|
317
|
+
separate: null
|
|
318
|
+
},
|
|
319
|
+
functions: [
|
|
320
|
+
{
|
|
321
|
+
name: "correct",
|
|
322
|
+
parameters: {
|
|
323
|
+
description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft corrections and produces the final, error-free code\n> that maintains all business requirements.",
|
|
273
324
|
type: "object",
|
|
274
325
|
properties: {
|
|
275
|
-
|
|
276
|
-
description: "
|
|
326
|
+
think: {
|
|
327
|
+
description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
|
|
277
328
|
type: "string"
|
|
278
329
|
},
|
|
279
|
-
|
|
280
|
-
description: "
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
330
|
+
draft: {
|
|
331
|
+
description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
|
|
332
|
+
type: "string"
|
|
333
|
+
},
|
|
334
|
+
revise: {
|
|
335
|
+
$ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
required: [
|
|
339
|
+
"think",
|
|
340
|
+
"draft",
|
|
341
|
+
"revise"
|
|
342
|
+
],
|
|
343
|
+
additionalProperties: false,
|
|
344
|
+
$defs: {
|
|
345
|
+
"IAutoBeRealizeCorrectApplication.IReviseProps": {
|
|
346
|
+
type: "object",
|
|
347
|
+
properties: {
|
|
348
|
+
review: {
|
|
349
|
+
description: "Correction review and validation.\n\nAnalyzes the draft corrections to ensure:\n\n- All TypeScript errors are resolved\n- Business logic remains intact\n- AutoBE coding standards are maintained\n- No new errors are introduced\n- Performance and security are preserved",
|
|
286
350
|
type: "string"
|
|
351
|
+
},
|
|
352
|
+
final: {
|
|
353
|
+
description: "Final error-free implementation.\n\nThe complete, corrected code that passes all TypeScript compilation\nchecks.\n\nReturns `null` if the draft corrections are sufficient and need no\nfurther changes.",
|
|
354
|
+
anyOf: [
|
|
355
|
+
{
|
|
356
|
+
type: "null"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
type: "string"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
287
362
|
}
|
|
363
|
+
},
|
|
364
|
+
required: [
|
|
365
|
+
"review",
|
|
366
|
+
"final"
|
|
288
367
|
]
|
|
289
368
|
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
|
|
372
|
+
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, {
|
|
373
|
+
path: _path + ".think",
|
|
374
|
+
expected: "string",
|
|
375
|
+
value: input.think
|
|
376
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
377
|
+
path: _path + ".draft",
|
|
378
|
+
expected: "string",
|
|
379
|
+
value: input.draft
|
|
380
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
381
|
+
path: _path + ".revise",
|
|
382
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
383
|
+
value: input.revise
|
|
384
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
385
|
+
path: _path + ".revise",
|
|
386
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
387
|
+
value: input.revise
|
|
388
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
389
|
+
path: _path + ".review",
|
|
390
|
+
expected: "string",
|
|
391
|
+
value: input.review
|
|
392
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
393
|
+
path: _path + ".final",
|
|
394
|
+
expected: "(null | string)",
|
|
395
|
+
value: input.final
|
|
396
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
397
|
+
if (false === __is(input)) {
|
|
398
|
+
errors = [];
|
|
399
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
400
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
401
|
+
path: _path + "",
|
|
402
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
403
|
+
value: input
|
|
404
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
405
|
+
path: _path + "",
|
|
406
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
407
|
+
value: input
|
|
408
|
+
}))(input, "$input", true);
|
|
409
|
+
const success = 0 === errors.length;
|
|
410
|
+
return success ? {
|
|
411
|
+
success,
|
|
412
|
+
data: input
|
|
413
|
+
} : {
|
|
414
|
+
success,
|
|
415
|
+
errors,
|
|
416
|
+
data: input
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
success: true,
|
|
421
|
+
data: input
|
|
422
|
+
};
|
|
423
|
+
}; })()
|
|
296
424
|
}
|
|
425
|
+
]
|
|
426
|
+
};
|
|
427
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
428
|
+
validate: {
|
|
429
|
+
correct: validate,
|
|
297
430
|
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
328
|
-
path: _path + "",
|
|
329
|
-
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
330
|
-
value: input
|
|
331
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
332
|
-
path: _path + "",
|
|
333
|
-
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
334
|
-
value: input
|
|
335
|
-
}))(input, "$input", true);
|
|
336
|
-
const success = 0 === errors.length;
|
|
337
|
-
return success ? {
|
|
338
|
-
success,
|
|
339
|
-
data: input
|
|
340
|
-
} : {
|
|
341
|
-
success,
|
|
342
|
-
errors,
|
|
343
|
-
data: input
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
return {
|
|
347
|
-
success: true,
|
|
348
|
-
data: input
|
|
349
|
-
};
|
|
350
|
-
}; })()
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
};
|
|
354
|
-
const collection = {
|
|
355
|
-
chatgpt: {
|
|
356
|
-
model: "chatgpt",
|
|
357
|
-
options: {
|
|
358
|
-
reference: true,
|
|
359
|
-
strict: false,
|
|
360
|
-
separate: null
|
|
361
|
-
},
|
|
362
|
-
functions: [
|
|
363
|
-
{
|
|
364
|
-
name: "correct",
|
|
365
|
-
parameters: {
|
|
366
|
-
description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft corrections and produces the final, error-free code\n> that maintains all business requirements.",
|
|
367
|
-
type: "object",
|
|
368
|
-
properties: {
|
|
369
|
-
think: {
|
|
370
|
-
description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
|
|
371
|
-
type: "string"
|
|
372
|
-
},
|
|
373
|
-
draft: {
|
|
374
|
-
description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
|
|
375
|
-
type: "string"
|
|
431
|
+
}), { equals: false }));
|
|
432
|
+
return application;
|
|
433
|
+
})(),
|
|
434
|
+
claude: (validate) => (() => {
|
|
435
|
+
const application = {
|
|
436
|
+
model: "claude",
|
|
437
|
+
options: {
|
|
438
|
+
reference: true,
|
|
439
|
+
separate: null
|
|
440
|
+
},
|
|
441
|
+
functions: [
|
|
442
|
+
{
|
|
443
|
+
name: "correct",
|
|
444
|
+
parameters: {
|
|
445
|
+
description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
|
|
446
|
+
type: "object",
|
|
447
|
+
properties: {
|
|
448
|
+
think: {
|
|
449
|
+
description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
|
|
450
|
+
type: "string"
|
|
451
|
+
},
|
|
452
|
+
draft: {
|
|
453
|
+
description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
|
|
454
|
+
type: "string"
|
|
455
|
+
},
|
|
456
|
+
revise: {
|
|
457
|
+
description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
|
|
458
|
+
$ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
|
|
459
|
+
}
|
|
376
460
|
},
|
|
377
|
-
|
|
378
|
-
|
|
461
|
+
required: [
|
|
462
|
+
"think",
|
|
463
|
+
"draft",
|
|
464
|
+
"revise"
|
|
465
|
+
],
|
|
466
|
+
additionalProperties: false,
|
|
467
|
+
$defs: {
|
|
468
|
+
"IAutoBeRealizeCorrectApplication.IReviseProps": {
|
|
469
|
+
type: "object",
|
|
470
|
+
properties: {
|
|
471
|
+
review: {
|
|
472
|
+
description: "Correction review and validation.\n\nAnalyzes the draft corrections to ensure:\n\n- All TypeScript errors are resolved\n- Business logic remains intact\n- AutoBE coding standards are maintained\n- No new errors are introduced\n- Performance and security are preserved",
|
|
473
|
+
type: "string"
|
|
474
|
+
},
|
|
475
|
+
final: {
|
|
476
|
+
description: "Final error-free implementation.\n\nThe complete, corrected code that passes all TypeScript compilation\nchecks.\n\nReturns `null` if the draft corrections are sufficient and need no\nfurther changes.",
|
|
477
|
+
oneOf: [
|
|
478
|
+
{
|
|
479
|
+
type: "null"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
type: "string"
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
required: [
|
|
488
|
+
"review",
|
|
489
|
+
"final"
|
|
490
|
+
]
|
|
491
|
+
}
|
|
379
492
|
}
|
|
380
493
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
494
|
+
description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
|
|
495
|
+
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, {
|
|
496
|
+
path: _path + ".think",
|
|
497
|
+
expected: "string",
|
|
498
|
+
value: input.think
|
|
499
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
500
|
+
path: _path + ".draft",
|
|
501
|
+
expected: "string",
|
|
502
|
+
value: input.draft
|
|
503
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
504
|
+
path: _path + ".revise",
|
|
505
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
506
|
+
value: input.revise
|
|
507
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
508
|
+
path: _path + ".revise",
|
|
509
|
+
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
510
|
+
value: input.revise
|
|
511
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
512
|
+
path: _path + ".review",
|
|
513
|
+
expected: "string",
|
|
514
|
+
value: input.review
|
|
515
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
516
|
+
path: _path + ".final",
|
|
517
|
+
expected: "(null | string)",
|
|
518
|
+
value: input.final
|
|
519
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
520
|
+
if (false === __is(input)) {
|
|
521
|
+
errors = [];
|
|
522
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
523
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
524
|
+
path: _path + "",
|
|
525
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
526
|
+
value: input
|
|
527
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
528
|
+
path: _path + "",
|
|
529
|
+
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
530
|
+
value: input
|
|
531
|
+
}))(input, "$input", true);
|
|
532
|
+
const success = 0 === errors.length;
|
|
533
|
+
return success ? {
|
|
534
|
+
success,
|
|
535
|
+
data: input
|
|
536
|
+
} : {
|
|
537
|
+
success,
|
|
538
|
+
errors,
|
|
539
|
+
data: input
|
|
540
|
+
};
|
|
411
541
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
|
|
415
|
-
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, {
|
|
416
|
-
path: _path + ".think",
|
|
417
|
-
expected: "string",
|
|
418
|
-
value: input.think
|
|
419
|
-
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
420
|
-
path: _path + ".draft",
|
|
421
|
-
expected: "string",
|
|
422
|
-
value: input.draft
|
|
423
|
-
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
424
|
-
path: _path + ".revise",
|
|
425
|
-
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
426
|
-
value: input.revise
|
|
427
|
-
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
428
|
-
path: _path + ".revise",
|
|
429
|
-
expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
|
|
430
|
-
value: input.revise
|
|
431
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
432
|
-
path: _path + ".review",
|
|
433
|
-
expected: "string",
|
|
434
|
-
value: input.review
|
|
435
|
-
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
436
|
-
path: _path + ".final",
|
|
437
|
-
expected: "(null | string)",
|
|
438
|
-
value: input.final
|
|
439
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
440
|
-
if (false === __is(input)) {
|
|
441
|
-
errors = [];
|
|
442
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
443
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
444
|
-
path: _path + "",
|
|
445
|
-
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
446
|
-
value: input
|
|
447
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
448
|
-
path: _path + "",
|
|
449
|
-
expected: "IAutoBeRealizeCorrectApplication.IProps",
|
|
450
|
-
value: input
|
|
451
|
-
}))(input, "$input", true);
|
|
452
|
-
const success = 0 === errors.length;
|
|
453
|
-
return success ? {
|
|
454
|
-
success,
|
|
455
|
-
data: input
|
|
456
|
-
} : {
|
|
457
|
-
success,
|
|
458
|
-
errors,
|
|
542
|
+
return {
|
|
543
|
+
success: true,
|
|
459
544
|
data: input
|
|
460
545
|
};
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
deepseek: claude,
|
|
473
|
-
"3.1": claude,
|
|
546
|
+
}; })()
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
};
|
|
550
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
551
|
+
validate: {
|
|
552
|
+
correct: validate,
|
|
553
|
+
},
|
|
554
|
+
}), { equals: false }));
|
|
555
|
+
return application;
|
|
556
|
+
})(),
|
|
474
557
|
};
|
|
475
558
|
//# sourceMappingURL=orchestrateRealizeCorrect.js.map
|