@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":"orchestrateRealizeCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateRealizeCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,8DA4FC;;;AArHD,yCAA2C;AAQ3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,qEAAkE;AAClE,mGAAgG;AAChG,wEAAqE;AAIrE,iEAA8D;AAC9D,qFAAkF;AAClF,mEAAgE;AAChE,6EAA0E;AAE1E,SAAsB,yBAAyB;yDAC7C,GAAyB,EACzB,SAAyC,EACzC,cAA4C,EAC5C,SAAkC,EAClC,QA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AAE,QAAQ;aAClB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -47,10 +47,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.orchestrateRealizeWrite = orchestrateRealizeWrite;
|
|
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");
|
|
55
|
+
const validateEmptyCode_1 = require("../../utils/validateEmptyCode");
|
|
54
56
|
const transformRealizeWriteHistories_1 = require("./histories/transformRealizeWriteHistories");
|
|
55
57
|
const getRealizeWriteDto_1 = require("./utils/getRealizeWriteDto");
|
|
56
58
|
const replaceImportStatements_1 = require("./utils/replaceImportStatements");
|
|
@@ -72,6 +74,7 @@ function orchestrateRealizeWrite(ctx, props) {
|
|
|
72
74
|
}),
|
|
73
75
|
controller: createController({
|
|
74
76
|
model: ctx.model,
|
|
77
|
+
functionName: props.scenario.functionName,
|
|
75
78
|
build: (next) => {
|
|
76
79
|
pointer.value = next;
|
|
77
80
|
},
|
|
@@ -128,7 +131,75 @@ function orchestrateRealizeWrite(ctx, props) {
|
|
|
128
131
|
}
|
|
129
132
|
function createController(props) {
|
|
130
133
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
131
|
-
const
|
|
134
|
+
const validate = (input) => {
|
|
135
|
+
const result = (() => { 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, {
|
|
136
|
+
path: _path + ".plan",
|
|
137
|
+
expected: "string",
|
|
138
|
+
value: input.plan
|
|
139
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
140
|
+
path: _path + ".draft",
|
|
141
|
+
expected: "string",
|
|
142
|
+
value: input.draft
|
|
143
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
144
|
+
path: _path + ".revise",
|
|
145
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
146
|
+
value: input.revise
|
|
147
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
148
|
+
path: _path + ".revise",
|
|
149
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
150
|
+
value: input.revise
|
|
151
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
152
|
+
path: _path + ".review",
|
|
153
|
+
expected: "string",
|
|
154
|
+
value: input.review
|
|
155
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
156
|
+
path: _path + ".final",
|
|
157
|
+
expected: "(null | string)",
|
|
158
|
+
value: input.final
|
|
159
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
160
|
+
if (false === __is(input)) {
|
|
161
|
+
errors = [];
|
|
162
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
163
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
164
|
+
path: _path + "",
|
|
165
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
166
|
+
value: input
|
|
167
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
168
|
+
path: _path + "",
|
|
169
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
170
|
+
value: input
|
|
171
|
+
}))(input, "$input", true);
|
|
172
|
+
const success = 0 === errors.length;
|
|
173
|
+
return success ? {
|
|
174
|
+
success,
|
|
175
|
+
data: input
|
|
176
|
+
} : {
|
|
177
|
+
success,
|
|
178
|
+
errors,
|
|
179
|
+
data: input
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
success: true,
|
|
184
|
+
data: input
|
|
185
|
+
};
|
|
186
|
+
}; })()(input);
|
|
187
|
+
if (result.success === false)
|
|
188
|
+
return result;
|
|
189
|
+
const errors = (0, validateEmptyCode_1.validateEmptyCode)({
|
|
190
|
+
functionName: props.functionName,
|
|
191
|
+
draft: result.data.draft,
|
|
192
|
+
revise: result.data.revise,
|
|
193
|
+
});
|
|
194
|
+
return errors.length
|
|
195
|
+
? {
|
|
196
|
+
success: false,
|
|
197
|
+
errors,
|
|
198
|
+
data: result.data,
|
|
199
|
+
}
|
|
200
|
+
: result;
|
|
201
|
+
};
|
|
202
|
+
const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
|
|
132
203
|
return {
|
|
133
204
|
protocol: "class",
|
|
134
205
|
name: "Write code",
|
|
@@ -140,240 +211,252 @@ function createController(props) {
|
|
|
140
211
|
},
|
|
141
212
|
};
|
|
142
213
|
}
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
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.",
|
|
158
|
-
type: "string"
|
|
159
|
-
},
|
|
160
|
-
draft: {
|
|
161
|
-
description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
|
|
162
|
-
type: "string"
|
|
163
|
-
},
|
|
164
|
-
revise: {
|
|
165
|
-
description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
|
|
166
|
-
$ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
required: [
|
|
170
|
-
"plan",
|
|
171
|
-
"draft",
|
|
172
|
-
"revise"
|
|
173
|
-
],
|
|
174
|
-
additionalProperties: false,
|
|
175
|
-
$defs: {
|
|
176
|
-
"IAutoBeRealizeWriteApplication.IReviseProps": {
|
|
214
|
+
const collection = {
|
|
215
|
+
chatgpt: (validate) => (() => {
|
|
216
|
+
const application = {
|
|
217
|
+
model: "chatgpt",
|
|
218
|
+
options: {
|
|
219
|
+
reference: true,
|
|
220
|
+
strict: false,
|
|
221
|
+
separate: null
|
|
222
|
+
},
|
|
223
|
+
functions: [
|
|
224
|
+
{
|
|
225
|
+
name: "write",
|
|
226
|
+
parameters: {
|
|
227
|
+
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft implementation and produces the final code with all\n> improvements and corrections applied.",
|
|
177
228
|
type: "object",
|
|
178
229
|
properties: {
|
|
179
|
-
|
|
180
|
-
description: "
|
|
230
|
+
plan: {
|
|
231
|
+
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.",
|
|
181
232
|
type: "string"
|
|
182
233
|
},
|
|
183
|
-
|
|
184
|
-
description: "
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
234
|
+
draft: {
|
|
235
|
+
description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
|
|
236
|
+
type: "string"
|
|
237
|
+
},
|
|
238
|
+
revise: {
|
|
239
|
+
$ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
required: [
|
|
243
|
+
"plan",
|
|
244
|
+
"draft",
|
|
245
|
+
"revise"
|
|
246
|
+
],
|
|
247
|
+
additionalProperties: false,
|
|
248
|
+
$defs: {
|
|
249
|
+
"IAutoBeRealizeWriteApplication.IReviseProps": {
|
|
250
|
+
type: "object",
|
|
251
|
+
properties: {
|
|
252
|
+
review: {
|
|
253
|
+
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",
|
|
190
254
|
type: "string"
|
|
255
|
+
},
|
|
256
|
+
final: {
|
|
257
|
+
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.",
|
|
258
|
+
anyOf: [
|
|
259
|
+
{
|
|
260
|
+
type: "null"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: "string"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
191
266
|
}
|
|
267
|
+
},
|
|
268
|
+
required: [
|
|
269
|
+
"review",
|
|
270
|
+
"final"
|
|
192
271
|
]
|
|
193
272
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
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.",
|
|
276
|
+
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, {
|
|
277
|
+
path: _path + ".plan",
|
|
278
|
+
expected: "string",
|
|
279
|
+
value: input.plan
|
|
280
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
281
|
+
path: _path + ".draft",
|
|
282
|
+
expected: "string",
|
|
283
|
+
value: input.draft
|
|
284
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
285
|
+
path: _path + ".revise",
|
|
286
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
287
|
+
value: input.revise
|
|
288
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
289
|
+
path: _path + ".revise",
|
|
290
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
291
|
+
value: input.revise
|
|
292
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
293
|
+
path: _path + ".review",
|
|
294
|
+
expected: "string",
|
|
295
|
+
value: input.review
|
|
296
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
297
|
+
path: _path + ".final",
|
|
298
|
+
expected: "(null | string)",
|
|
299
|
+
value: input.final
|
|
300
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
301
|
+
if (false === __is(input)) {
|
|
302
|
+
errors = [];
|
|
303
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
304
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
305
|
+
path: _path + "",
|
|
306
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
307
|
+
value: input
|
|
308
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
309
|
+
path: _path + "",
|
|
310
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
311
|
+
value: input
|
|
312
|
+
}))(input, "$input", true);
|
|
313
|
+
const success = 0 === errors.length;
|
|
314
|
+
return success ? {
|
|
315
|
+
success,
|
|
316
|
+
data: input
|
|
317
|
+
} : {
|
|
318
|
+
success,
|
|
319
|
+
errors,
|
|
320
|
+
data: input
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
return {
|
|
324
|
+
success: true,
|
|
325
|
+
data: input
|
|
326
|
+
};
|
|
327
|
+
}; })()
|
|
200
328
|
}
|
|
329
|
+
]
|
|
330
|
+
};
|
|
331
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
332
|
+
validate: {
|
|
333
|
+
write: validate,
|
|
201
334
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
232
|
-
path: _path + "",
|
|
233
|
-
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
234
|
-
value: input
|
|
235
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
236
|
-
path: _path + "",
|
|
237
|
-
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
238
|
-
value: input
|
|
239
|
-
}))(input, "$input", true);
|
|
240
|
-
const success = 0 === errors.length;
|
|
241
|
-
return success ? {
|
|
242
|
-
success,
|
|
243
|
-
data: input
|
|
244
|
-
} : {
|
|
245
|
-
success,
|
|
246
|
-
errors,
|
|
247
|
-
data: input
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
return {
|
|
251
|
-
success: true,
|
|
252
|
-
data: input
|
|
253
|
-
};
|
|
254
|
-
}; })()
|
|
255
|
-
}
|
|
256
|
-
]
|
|
257
|
-
};
|
|
258
|
-
const collection = {
|
|
259
|
-
chatgpt: {
|
|
260
|
-
model: "chatgpt",
|
|
261
|
-
options: {
|
|
262
|
-
reference: true,
|
|
263
|
-
strict: false,
|
|
264
|
-
separate: null
|
|
265
|
-
},
|
|
266
|
-
functions: [
|
|
267
|
-
{
|
|
268
|
-
name: "write",
|
|
269
|
-
parameters: {
|
|
270
|
-
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Revision and finalization phase.\n> \n> Reviews the draft implementation and produces the final code with all\n> improvements and corrections applied.",
|
|
271
|
-
type: "object",
|
|
272
|
-
properties: {
|
|
273
|
-
plan: {
|
|
274
|
-
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.",
|
|
275
|
-
type: "string"
|
|
276
|
-
},
|
|
277
|
-
draft: {
|
|
278
|
-
description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
|
|
279
|
-
type: "string"
|
|
335
|
+
}), { equals: false }));
|
|
336
|
+
return application;
|
|
337
|
+
})(),
|
|
338
|
+
claude: (validate) => (() => {
|
|
339
|
+
const application = {
|
|
340
|
+
model: "claude",
|
|
341
|
+
options: {
|
|
342
|
+
reference: true,
|
|
343
|
+
separate: null
|
|
344
|
+
},
|
|
345
|
+
functions: [
|
|
346
|
+
{
|
|
347
|
+
name: "write",
|
|
348
|
+
parameters: {
|
|
349
|
+
description: " Chain of Thinking properties for implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeWriteApplication.IProps}",
|
|
350
|
+
type: "object",
|
|
351
|
+
properties: {
|
|
352
|
+
plan: {
|
|
353
|
+
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.",
|
|
354
|
+
type: "string"
|
|
355
|
+
},
|
|
356
|
+
draft: {
|
|
357
|
+
description: "Initial implementation draft.\n\nThe first complete implementation attempt based on the plan. May contain\nareas that need refinement in the review phase.",
|
|
358
|
+
type: "string"
|
|
359
|
+
},
|
|
360
|
+
revise: {
|
|
361
|
+
description: "Revision and finalization phase.\n\nReviews the draft implementation and produces the final code with all\nimprovements and corrections applied.",
|
|
362
|
+
$ref: "#/$defs/IAutoBeRealizeWriteApplication.IReviseProps"
|
|
363
|
+
}
|
|
280
364
|
},
|
|
281
|
-
|
|
282
|
-
|
|
365
|
+
required: [
|
|
366
|
+
"plan",
|
|
367
|
+
"draft",
|
|
368
|
+
"revise"
|
|
369
|
+
],
|
|
370
|
+
additionalProperties: false,
|
|
371
|
+
$defs: {
|
|
372
|
+
"IAutoBeRealizeWriteApplication.IReviseProps": {
|
|
373
|
+
type: "object",
|
|
374
|
+
properties: {
|
|
375
|
+
review: {
|
|
376
|
+
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",
|
|
377
|
+
type: "string"
|
|
378
|
+
},
|
|
379
|
+
final: {
|
|
380
|
+
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.",
|
|
381
|
+
oneOf: [
|
|
382
|
+
{
|
|
383
|
+
type: "null"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
type: "string"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
required: [
|
|
392
|
+
"review",
|
|
393
|
+
"final"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
283
396
|
}
|
|
284
397
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
398
|
+
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.",
|
|
399
|
+
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, {
|
|
400
|
+
path: _path + ".plan",
|
|
401
|
+
expected: "string",
|
|
402
|
+
value: input.plan
|
|
403
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
404
|
+
path: _path + ".draft",
|
|
405
|
+
expected: "string",
|
|
406
|
+
value: input.draft
|
|
407
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
408
|
+
path: _path + ".revise",
|
|
409
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
410
|
+
value: input.revise
|
|
411
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
412
|
+
path: _path + ".revise",
|
|
413
|
+
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
414
|
+
value: input.revise
|
|
415
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
416
|
+
path: _path + ".review",
|
|
417
|
+
expected: "string",
|
|
418
|
+
value: input.review
|
|
419
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
420
|
+
path: _path + ".final",
|
|
421
|
+
expected: "(null | string)",
|
|
422
|
+
value: input.final
|
|
423
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
424
|
+
if (false === __is(input)) {
|
|
425
|
+
errors = [];
|
|
426
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
427
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
428
|
+
path: _path + "",
|
|
429
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
430
|
+
value: input
|
|
431
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
432
|
+
path: _path + "",
|
|
433
|
+
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
434
|
+
value: input
|
|
435
|
+
}))(input, "$input", true);
|
|
436
|
+
const success = 0 === errors.length;
|
|
437
|
+
return success ? {
|
|
438
|
+
success,
|
|
439
|
+
data: input
|
|
440
|
+
} : {
|
|
441
|
+
success,
|
|
442
|
+
errors,
|
|
443
|
+
data: input
|
|
444
|
+
};
|
|
315
445
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
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.",
|
|
319
|
-
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, {
|
|
320
|
-
path: _path + ".plan",
|
|
321
|
-
expected: "string",
|
|
322
|
-
value: input.plan
|
|
323
|
-
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
324
|
-
path: _path + ".draft",
|
|
325
|
-
expected: "string",
|
|
326
|
-
value: input.draft
|
|
327
|
-
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
328
|
-
path: _path + ".revise",
|
|
329
|
-
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
330
|
-
value: input.revise
|
|
331
|
-
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
332
|
-
path: _path + ".revise",
|
|
333
|
-
expected: "IAutoBeRealizeWriteApplication.IReviseProps",
|
|
334
|
-
value: input.revise
|
|
335
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
336
|
-
path: _path + ".review",
|
|
337
|
-
expected: "string",
|
|
338
|
-
value: input.review
|
|
339
|
-
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
340
|
-
path: _path + ".final",
|
|
341
|
-
expected: "(null | string)",
|
|
342
|
-
value: input.final
|
|
343
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
344
|
-
if (false === __is(input)) {
|
|
345
|
-
errors = [];
|
|
346
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
347
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
348
|
-
path: _path + "",
|
|
349
|
-
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
350
|
-
value: input
|
|
351
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
352
|
-
path: _path + "",
|
|
353
|
-
expected: "IAutoBeRealizeWriteApplication.IProps",
|
|
354
|
-
value: input
|
|
355
|
-
}))(input, "$input", true);
|
|
356
|
-
const success = 0 === errors.length;
|
|
357
|
-
return success ? {
|
|
358
|
-
success,
|
|
359
|
-
data: input
|
|
360
|
-
} : {
|
|
361
|
-
success,
|
|
362
|
-
errors,
|
|
446
|
+
return {
|
|
447
|
+
success: true,
|
|
363
448
|
data: input
|
|
364
449
|
};
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
deepseek: claude,
|
|
377
|
-
"3.1": claude,
|
|
450
|
+
}; })()
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
};
|
|
454
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
455
|
+
validate: {
|
|
456
|
+
write: validate,
|
|
457
|
+
},
|
|
458
|
+
}), { equals: false }));
|
|
459
|
+
return application;
|
|
460
|
+
})(),
|
|
378
461
|
};
|
|
379
462
|
//# sourceMappingURL=orchestrateRealizeWrite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateRealizeWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,0DAiFC;;;AArGD,yCAA2C;AAQ3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,qEAAkE;AAClE,+FAA4F;AAG5F,mEAAgE;AAChE,6EAA0E;AAE1E,SAAsB,uBAAuB,CAC3C,GAAyB,EACzB,KAOC;;;QAED,MAAM,OAAO,GAA2D;YACtE,KAAK,EAAE,IAAI;SACZ,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,IAAA,uCAAkB,EAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACpE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC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