@autobe/agent 0.15.1 → 0.16.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.js +2 -2
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.d.ts +1 -0
- package/lib/AutoBeMockAgent.js +18 -4
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +3 -3
- package/lib/factory/getAutoBeGenerated.js +2 -1
- package/lib/factory/getAutoBeGenerated.js.map +1 -1
- package/lib/index.mjs +739 -577
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -15
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -3
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +19 -12
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +1 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +3 -5
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +7 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +363 -4
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +3 -3
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +3 -118
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +1 -1
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +1 -1
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +11 -4
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +61 -45
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +17 -10
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
- package/lib/orchestrate/realize/ProviderCodeComparator.js +16 -0
- package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealize.js +41 -53
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +13 -87
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +32 -43
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +3 -2
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js +25 -39
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +15 -15
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +11 -17
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +4 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +21 -17
- package/lib/orchestrate/realize/transformRealizeAuthorization.js +5 -9
- package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +9 -0
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +3 -2
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js +58 -27
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -1
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +10 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +38 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +2 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +15 -2
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +9 -2
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +158 -100
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +1 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +1 -1
- package/src/AutoBeMockAgent.ts +20 -6
- package/src/constants/AutoBeSystemPromptConstant.ts +3 -3
- package/src/factory/getAutoBeGenerated.ts +2 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -15
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +17 -17
- package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +4 -7
- package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +100 -6
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +5 -21
- package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +76 -59
- package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +17 -10
- package/src/orchestrate/realize/ProviderCodeComparator.ts +15 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +54 -59
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +12 -120
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +21 -5
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +10 -9
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +15 -15
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +11 -18
- package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +4 -2
- package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +24 -17
- package/src/orchestrate/realize/transformRealizeAuthorization.ts +5 -9
- package/src/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.ts +9 -0
- package/src/orchestrate/realize/transformRealizeCoderHistories.ts +73 -25
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.ts +9 -0
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +64 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +41 -2
- package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +219 -145
- package/src/orchestrate/test/orchestrateTest.ts +1 -1
|
@@ -75,7 +75,7 @@ const replaceImportStatements_1 = require("./utils/replaceImportStatements");
|
|
|
75
75
|
* @param props - Planning result describing what function to generate
|
|
76
76
|
* @returns The generated function name and TypeScript code
|
|
77
77
|
*/
|
|
78
|
-
const orchestrateRealizeCoder = (ctx, operation, props, previous, total, diagnostics) => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
const orchestrateRealizeCoder = (ctx, operation, previousCodes, props, previous, total, diagnostics, authorization) => __awaiter(void 0, void 0, void 0, function* () {
|
|
79
79
|
var _a;
|
|
80
80
|
total;
|
|
81
81
|
const artifacts = yield (0, getTestScenarioArtifacts_1.getTestScenarioArtifacts)(ctx, {
|
|
@@ -101,7 +101,7 @@ const orchestrateRealizeCoder = (ctx, operation, props, previous, total, diagnos
|
|
|
101
101
|
config: Object.assign(Object.assign({}, ctx.config), { executor: {
|
|
102
102
|
describe: null,
|
|
103
103
|
} }),
|
|
104
|
-
histories: (0, transformRealizeCoderHistories_1.transformRealizeCoderHistories)(ctx.state(), props, artifacts, previous, diagnostics),
|
|
104
|
+
histories: (0, transformRealizeCoderHistories_1.transformRealizeCoderHistories)(ctx.state(), previousCodes, props, artifacts, previous, diagnostics, authorization),
|
|
105
105
|
});
|
|
106
106
|
(0, enforceToolCall_1.enforceToolCall)(agent);
|
|
107
107
|
yield (0, backoffRetry_1.randomBackoffRetry)(() => agent.conversate([
|
|
@@ -123,7 +123,7 @@ const orchestrateRealizeCoder = (ctx, operation, props, previous, total, diagnos
|
|
|
123
123
|
if (pointer.value === null) {
|
|
124
124
|
return IAutoBeRealizeFailedSymbol_1.FAILED;
|
|
125
125
|
}
|
|
126
|
-
pointer.value.implementationCode = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx)(pointer.value.implementationCode, (_a = props.decoratorEvent) === null || _a === void 0 ? void 0 : _a.payload.name);
|
|
126
|
+
pointer.value.implementationCode = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx)(artifacts, pointer.value.implementationCode, (_a = props.decoratorEvent) === null || _a === void 0 ? void 0 : _a.payload.name);
|
|
127
127
|
pointer.value.implementationCode =
|
|
128
128
|
pointer.value.implementationCode.replaceAll("typia.tags.assert", "typia.assert");
|
|
129
129
|
return Object.assign(Object.assign({}, pointer.value), { filename: ProviderFileSystem_1.RealizeFileSystem.providerPath(props.functionName) });
|
|
@@ -158,7 +158,7 @@ const claude = {
|
|
|
158
158
|
properties: {
|
|
159
159
|
output: {
|
|
160
160
|
description: "The detailed output of the code generation process, containing all phases\nfrom planning to final implementation of a TypeScript provider function.",
|
|
161
|
-
$ref: "#/$defs/
|
|
161
|
+
$ref: "#/$defs/OmitIAutoBeRealizeCoderApplication.RealizeCoderOutputfilename"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
required: [
|
|
@@ -166,13 +166,10 @@ const claude = {
|
|
|
166
166
|
],
|
|
167
167
|
additionalProperties: false,
|
|
168
168
|
$defs: {
|
|
169
|
-
"
|
|
170
|
-
description: "
|
|
169
|
+
"OmitIAutoBeRealizeCoderApplication.RealizeCoderOutputfilename": {
|
|
170
|
+
description: "Construct a type with the properties of T except for those in type K.",
|
|
171
171
|
type: "object",
|
|
172
172
|
properties: {
|
|
173
|
-
filename: {
|
|
174
|
-
type: "string"
|
|
175
|
-
},
|
|
176
173
|
errorAnalysis: {
|
|
177
174
|
description: "Error Analysis Phase (Optional)\n\n\uD83D\uDD0D Analyzes TypeScript compilation errors from previous attempts.\n\nThis field should contain a detailed analysis of any TypeScript errors\nencountered, with root cause identification and resolution strategies:\n\nCommon Error Patterns to Analyze:\n\n1. **\"Property does not exist\" (TS2353)**:\n\n - Root Cause: Using fields that don't exist in Prisma schema\n - Example: Using `deleted_at` when the field doesn't exist in the model\n - Resolution: Remove the non-existent field or use hard delete instead\n2. **\"Type 'void' is not assignable\" (TS2322)**:\n\n - Root Cause: Using `typia.assertGuard` instead of `typia.assert`\n - `assertGuard` returns void, `assert` returns the validated value\n - Resolution: Change `typia.assertGuard<T>()` to `typia.assert<T>()`\n3. **\"Type 'Date' is not assignable to type 'string &\n Format<'date-time'>'\"**:\n\n - Root Cause: Assigning native Date objects to string fields\n - Resolution: Use `toISOStringSafe(dateValue)` for all date conversions\n4. **Complex Prisma Type Errors**:\n\n - Root Cause: Nested operations with incompatible types\n - Resolution: Use separate queries and application-level joins\n\nAnalysis Format:\n\n- List each error with its TypeScript error code\n- Identify the root cause (schema mismatch, wrong function usage, etc.)\n- Provide specific resolution steps\n- Note any schema limitations discovered",
|
|
178
175
|
type: "string"
|
|
@@ -194,7 +191,7 @@ const claude = {
|
|
|
194
191
|
type: "string"
|
|
195
192
|
},
|
|
196
193
|
withCompilerFeedback: {
|
|
197
|
-
description: "\uD83D\uDEE0 Phase 4-2: With compiler feedback (optional)\n\nA correction pass that applies fixes for compile-time errors that arose\nduring the review stage (if any).\n\n\u2705 Must:\n\n- Only include this field if TypeScript errors are detected in the Review\n phase.\n- Resolve all TypeScript errors without using `as any`.\n- Provide safe brand casting only if required (e.g., `as string &\n tags.Format<'uuid'>`)
|
|
194
|
+
description: "\uD83D\uDEE0 Phase 4-2: With compiler feedback (optional)\n\nA correction pass that applies fixes for compile-time errors that arose\nduring the review stage (if any).\n\n\u2705 Must:\n\n- Only include this field if TypeScript errors are detected in the Review\n phase.\n- Resolve all TypeScript errors without using `as any`.\n- Provide safe brand casting only if required (e.g., `as string &\n tags.Format<'uuid'>`).\n- If no TypeScript errors exist, this field MUST contain the text: \"No\n TypeScript errors detected - skipping this phase\"",
|
|
198
195
|
type: "string"
|
|
199
196
|
},
|
|
200
197
|
implementationCode: {
|
|
@@ -203,29 +200,25 @@ const claude = {
|
|
|
203
200
|
}
|
|
204
201
|
},
|
|
205
202
|
required: [
|
|
206
|
-
"filename",
|
|
207
203
|
"plan",
|
|
208
204
|
"prisma_schemas",
|
|
209
205
|
"draft_without_date_type",
|
|
210
206
|
"review",
|
|
207
|
+
"withCompilerFeedback",
|
|
211
208
|
"implementationCode"
|
|
212
209
|
]
|
|
213
210
|
}
|
|
214
211
|
}
|
|
215
212
|
},
|
|
216
|
-
validate: (() => { const _io0 = input => "object" === typeof input.output && null !== input.output && _io1(input.output); const _io1 = input =>
|
|
213
|
+
validate: (() => { const _io0 = input => "object" === typeof input.output && null !== input.output && _io1(input.output); const _io1 = input => (undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis) && "string" === typeof input.plan && "string" === typeof input.prisma_schemas && "string" === typeof input.draft_without_date_type && "string" === typeof input.review && "string" === typeof input.withCompilerFeedback && "string" === typeof input.implementationCode; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.output && null !== input.output || _report(_exceptionable, {
|
|
217
214
|
path: _path + ".output",
|
|
218
|
-
expected: "IAutoBeRealizeCoderApplication.RealizeCoderOutput",
|
|
215
|
+
expected: "Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, \"filename\">",
|
|
219
216
|
value: input.output
|
|
220
217
|
})) && _vo1(input.output, _path + ".output", true && _exceptionable) || _report(_exceptionable, {
|
|
221
218
|
path: _path + ".output",
|
|
222
|
-
expected: "IAutoBeRealizeCoderApplication.RealizeCoderOutput",
|
|
219
|
+
expected: "Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, \"filename\">",
|
|
223
220
|
value: input.output
|
|
224
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
225
|
-
path: _path + ".filename",
|
|
226
|
-
expected: "string",
|
|
227
|
-
value: input.filename
|
|
228
|
-
}), undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis || _report(_exceptionable, {
|
|
221
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis || _report(_exceptionable, {
|
|
229
222
|
path: _path + ".errorAnalysis",
|
|
230
223
|
expected: "(string | undefined)",
|
|
231
224
|
value: input.errorAnalysis
|
|
@@ -245,9 +238,9 @@ const claude = {
|
|
|
245
238
|
path: _path + ".review",
|
|
246
239
|
expected: "string",
|
|
247
240
|
value: input.review
|
|
248
|
-
}),
|
|
241
|
+
}), "string" === typeof input.withCompilerFeedback || _report(_exceptionable, {
|
|
249
242
|
path: _path + ".withCompilerFeedback",
|
|
250
|
-
expected: "
|
|
243
|
+
expected: "string",
|
|
251
244
|
value: input.withCompilerFeedback
|
|
252
245
|
}), "string" === typeof input.implementationCode || _report(_exceptionable, {
|
|
253
246
|
path: _path + ".implementationCode",
|
|
@@ -300,7 +293,7 @@ const collection = {
|
|
|
300
293
|
type: "object",
|
|
301
294
|
properties: {
|
|
302
295
|
output: {
|
|
303
|
-
$ref: "#/$defs/
|
|
296
|
+
$ref: "#/$defs/OmitIAutoBeRealizeCoderApplication.RealizeCoderOutputfilename"
|
|
304
297
|
}
|
|
305
298
|
},
|
|
306
299
|
required: [
|
|
@@ -308,13 +301,10 @@ const collection = {
|
|
|
308
301
|
],
|
|
309
302
|
additionalProperties: false,
|
|
310
303
|
$defs: {
|
|
311
|
-
"
|
|
312
|
-
description: "
|
|
304
|
+
"OmitIAutoBeRealizeCoderApplication.RealizeCoderOutputfilename": {
|
|
305
|
+
description: "Construct a type with the properties of T except for those in type K.",
|
|
313
306
|
type: "object",
|
|
314
307
|
properties: {
|
|
315
|
-
filename: {
|
|
316
|
-
type: "string"
|
|
317
|
-
},
|
|
318
308
|
errorAnalysis: {
|
|
319
309
|
description: "Error Analysis Phase (Optional)\n\n\uD83D\uDD0D Analyzes TypeScript compilation errors from previous attempts.\n\nThis field should contain a detailed analysis of any TypeScript errors\nencountered, with root cause identification and resolution strategies:\n\nCommon Error Patterns to Analyze:\n\n1. **\"Property does not exist\" (TS2353)**:\n\n - Root Cause: Using fields that don't exist in Prisma schema\n - Example: Using `deleted_at` when the field doesn't exist in the model\n - Resolution: Remove the non-existent field or use hard delete instead\n2. **\"Type 'void' is not assignable\" (TS2322)**:\n\n - Root Cause: Using `typia.assertGuard` instead of `typia.assert`\n - `assertGuard` returns void, `assert` returns the validated value\n - Resolution: Change `typia.assertGuard<T>()` to `typia.assert<T>()`\n3. **\"Type 'Date' is not assignable to type 'string &\n Format<'date-time'>'\"**:\n\n - Root Cause: Assigning native Date objects to string fields\n - Resolution: Use `toISOStringSafe(dateValue)` for all date conversions\n4. **Complex Prisma Type Errors**:\n\n - Root Cause: Nested operations with incompatible types\n - Resolution: Use separate queries and application-level joins\n\nAnalysis Format:\n\n- List each error with its TypeScript error code\n- Identify the root cause (schema mismatch, wrong function usage, etc.)\n- Provide specific resolution steps\n- Note any schema limitations discovered",
|
|
320
310
|
type: "string"
|
|
@@ -336,7 +326,7 @@ const collection = {
|
|
|
336
326
|
type: "string"
|
|
337
327
|
},
|
|
338
328
|
withCompilerFeedback: {
|
|
339
|
-
description: "\uD83D\uDEE0 Phase 4-2: With compiler feedback (optional)\n\nA correction pass that applies fixes for compile-time errors that arose\nduring the review stage (if any).\n\n\u2705 Must:\n\n- Only include this field if TypeScript errors are detected in the Review\n phase.\n- Resolve all TypeScript errors without using `as any`.\n- Provide safe brand casting only if required (e.g., `as string &\n tags.Format<'uuid'>`)
|
|
329
|
+
description: "\uD83D\uDEE0 Phase 4-2: With compiler feedback (optional)\n\nA correction pass that applies fixes for compile-time errors that arose\nduring the review stage (if any).\n\n\u2705 Must:\n\n- Only include this field if TypeScript errors are detected in the Review\n phase.\n- Resolve all TypeScript errors without using `as any`.\n- Provide safe brand casting only if required (e.g., `as string &\n tags.Format<'uuid'>`).\n- If no TypeScript errors exist, this field MUST contain the text: \"No\n TypeScript errors detected - skipping this phase\"",
|
|
340
330
|
type: "string"
|
|
341
331
|
},
|
|
342
332
|
implementationCode: {
|
|
@@ -345,29 +335,25 @@ const collection = {
|
|
|
345
335
|
}
|
|
346
336
|
},
|
|
347
337
|
required: [
|
|
348
|
-
"filename",
|
|
349
338
|
"plan",
|
|
350
339
|
"prisma_schemas",
|
|
351
340
|
"draft_without_date_type",
|
|
352
341
|
"review",
|
|
342
|
+
"withCompilerFeedback",
|
|
353
343
|
"implementationCode"
|
|
354
344
|
]
|
|
355
345
|
}
|
|
356
346
|
}
|
|
357
347
|
},
|
|
358
|
-
validate: (() => { const _io0 = input => "object" === typeof input.output && null !== input.output && _io1(input.output); const _io1 = input =>
|
|
348
|
+
validate: (() => { const _io0 = input => "object" === typeof input.output && null !== input.output && _io1(input.output); const _io1 = input => (undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis) && "string" === typeof input.plan && "string" === typeof input.prisma_schemas && "string" === typeof input.draft_without_date_type && "string" === typeof input.review && "string" === typeof input.withCompilerFeedback && "string" === typeof input.implementationCode; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.output && null !== input.output || _report(_exceptionable, {
|
|
359
349
|
path: _path + ".output",
|
|
360
|
-
expected: "IAutoBeRealizeCoderApplication.RealizeCoderOutput",
|
|
350
|
+
expected: "Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, \"filename\">",
|
|
361
351
|
value: input.output
|
|
362
352
|
})) && _vo1(input.output, _path + ".output", true && _exceptionable) || _report(_exceptionable, {
|
|
363
353
|
path: _path + ".output",
|
|
364
|
-
expected: "IAutoBeRealizeCoderApplication.RealizeCoderOutput",
|
|
354
|
+
expected: "Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, \"filename\">",
|
|
365
355
|
value: input.output
|
|
366
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
367
|
-
path: _path + ".filename",
|
|
368
|
-
expected: "string",
|
|
369
|
-
value: input.filename
|
|
370
|
-
}), undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis || _report(_exceptionable, {
|
|
356
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.errorAnalysis || "string" === typeof input.errorAnalysis || _report(_exceptionable, {
|
|
371
357
|
path: _path + ".errorAnalysis",
|
|
372
358
|
expected: "(string | undefined)",
|
|
373
359
|
value: input.errorAnalysis
|
|
@@ -387,9 +373,9 @@ const collection = {
|
|
|
387
373
|
path: _path + ".review",
|
|
388
374
|
expected: "string",
|
|
389
375
|
value: input.review
|
|
390
|
-
}),
|
|
376
|
+
}), "string" === typeof input.withCompilerFeedback || _report(_exceptionable, {
|
|
391
377
|
path: _path + ".withCompilerFeedback",
|
|
392
|
-
expected: "
|
|
378
|
+
expected: "string",
|
|
393
379
|
value: input.withCompilerFeedback
|
|
394
380
|
}), "string" === typeof input.implementationCode || _report(_exceptionable, {
|
|
395
381
|
path: _path + ".implementationCode",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateRealizeCoder.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeCoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoE;
|
|
1
|
+
{"version":3,"file":"orchestrateRealizeCoder.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeCoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoE;AAQpE,kDAA0B;AAG1B,uEAAoE;AACpE,2DAA8D;AAC9D,iEAA8D;AAC9D,uFAAoF;AAKpF,wFAAiE;AACjE,qFAAkF;AAClF,mEAA+D;AAC/D,6EAA0E;AAE1E;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,uBAAuB,GAAG,CACrC,GAAyB,EACzB,SAAmC,EACnC,aAA8C,EAC9C,KAA2B,EAC3B,QAAuB,EACvB,KAAmD,EACnD,WAAyD,EACzD,aAA0C,EAC2B,EAAE;;IACvE,KAAK,CAAC;IAEN,MAAM,SAAS,GACb,MAAM,IAAA,mDAAwB,EAAC,GAAG,EAAE;QAClC,QAAQ,EAAE;YACR,MAAM,EAAE,SAAS,CAAC,MAAM;YACxB,IAAI,EAAE,SAAS,CAAC,IAAI;SACrB;QACD,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IAEL,MAAM,OAAO,GAGD;QACV,KAAK,EAAE,IAAI;KACZ,CAAC;IAEF,MAAM,UAAU,GAAG,iBAAiB,CAAC;QACnC,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC;QAC/B,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,IAAI,oBAAa,CAAC;QAC9B,WAAW,EAAE,CAAC,UAAU,CAAC;QACzB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,MAAM,kCACD,GAAG,CAAC,MAAM,KACb,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;aACf,GACF;QACD,SAAS,EAAE,IAAA,+DAA8B,EAC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iB,CAAiC,KAG1D;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IAEvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,YAAY;QAClB,WAAW;QACX,OAAO,EAAE;YACP,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;gBACpB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACuC;KAC3C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
|
|
@@ -35,13 +35,12 @@ export declare namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
37
|
/**
|
|
38
|
-
* Complete TypeScript code for the authentication Provider function
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* format) and type (role discriminator) fields using typia tags.
|
|
38
|
+
* Complete TypeScript code for the authentication Provider function. Must
|
|
39
|
+
* include: JWT token verification using jwtAuthorize function, role type
|
|
40
|
+
* checking against payload.type, database query using
|
|
41
|
+
* MyGlobal.prisma.{tableName} pattern to verify user existence, and proper
|
|
42
|
+
* error handling with ForbiddenException and UnauthorizedException. The
|
|
43
|
+
* function should return the authenticated user payload data.
|
|
45
44
|
*/
|
|
46
45
|
content: string;
|
|
47
46
|
}
|
|
@@ -66,18 +65,19 @@ export declare namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
66
65
|
}
|
|
67
66
|
interface IPayloadType {
|
|
68
67
|
/**
|
|
69
|
-
* The name of the
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* payload as a method parameter.
|
|
68
|
+
* The name of the Payload type to be generated in {Role}Payload format
|
|
69
|
+
* (e.g., AdminPayload, UserPayload). This type defines the structure of the
|
|
70
|
+
* authenticated user data that will be injected into Controller methods
|
|
71
|
+
* when using the decorator.
|
|
74
72
|
*/
|
|
75
73
|
name: string;
|
|
76
74
|
/**
|
|
77
|
-
*
|
|
78
|
-
* AdminPayload, UserPayload).
|
|
75
|
+
* Complete TypeScript code for the Payload type interface in {Role}Payload
|
|
76
|
+
* format (e.g., AdminPayload, UserPayload). Must include: id field with
|
|
77
|
+
* UUID format validation, type field as role discriminator, and proper
|
|
78
|
+
* typia tags for validation. This interface defines the structure of the
|
|
79
79
|
* authenticated user data that will be injected into Controller methods
|
|
80
|
-
* when using the decorator
|
|
80
|
+
* when using the decorator and serves as the TypeScript type for the
|
|
81
81
|
* parameter in Controller method signatures.
|
|
82
82
|
*/
|
|
83
83
|
content: string;
|
package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts
CHANGED
|
@@ -7,27 +7,21 @@ export declare namespace IAutoBeRealizeAuthorizationCorrectApplication {
|
|
|
7
7
|
/**
|
|
8
8
|
* Step 1: TypeScript compilation error analysis and diagnosis.
|
|
9
9
|
*
|
|
10
|
-
* AI identifies all compilation errors (type mismatches,
|
|
11
|
-
*
|
|
12
|
-
* error
|
|
13
|
-
*
|
|
10
|
+
* AI identifies and categorizes all compilation errors (type mismatches,
|
|
11
|
+
* import issues, syntax errors) by component (providers/decorator/payload).
|
|
12
|
+
* Lists specific error messages with their locations and types for
|
|
13
|
+
* systematic troubleshooting.
|
|
14
14
|
*/
|
|
15
15
|
error_analysis: string;
|
|
16
16
|
/**
|
|
17
|
-
* Step 2:
|
|
17
|
+
* Step 2: Solution guidance and fix recommendations.
|
|
18
18
|
*
|
|
19
|
-
* AI
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* AI provides clear, actionable instructions on how to resolve each
|
|
20
|
+
* identified error. Includes specific steps like "add property X to
|
|
21
|
+
* interface Y", "update import path from A to B", or "change type from C to
|
|
22
|
+
* D". Focus on guidance rather than generating complete code
|
|
23
|
+
* implementations.
|
|
22
24
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Step 3: Final validation and comprehensive fix summary.
|
|
26
|
-
*
|
|
27
|
-
* AI validates corrected code compiles successfully and documents all
|
|
28
|
-
* changes made. Provides production-ready code with detailed change log for
|
|
29
|
-
* maintenance reference.
|
|
30
|
-
*/
|
|
31
|
-
validation_summary: string;
|
|
25
|
+
solution_guidance: string;
|
|
32
26
|
}
|
|
33
27
|
}
|
|
@@ -13,7 +13,7 @@ export declare namespace IAutoBeRealizeCoderApplication {
|
|
|
13
13
|
* The detailed output of the code generation process, containing all phases
|
|
14
14
|
* from planning to final implementation of a TypeScript provider function.
|
|
15
15
|
*/
|
|
16
|
-
output: RealizeCoderOutput
|
|
16
|
+
output: Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, "filename">;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Represents the complete output of a code generation pipeline. Each field
|
|
@@ -277,8 +277,10 @@ export declare namespace IAutoBeRealizeCoderApplication {
|
|
|
277
277
|
* - Resolve all TypeScript errors without using `as any`.
|
|
278
278
|
* - Provide safe brand casting only if required (e.g., `as string &
|
|
279
279
|
* tags.Format<'uuid'>`).
|
|
280
|
+
* - If no TypeScript errors exist, this field MUST contain the text: "No
|
|
281
|
+
* TypeScript errors detected - skipping this phase"
|
|
280
282
|
*/
|
|
281
|
-
withCompilerFeedback
|
|
283
|
+
withCompilerFeedback: string;
|
|
282
284
|
/**
|
|
283
285
|
* Step 5.
|
|
284
286
|
*
|
|
@@ -1,40 +1,44 @@
|
|
|
1
1
|
import { AutoBeOpenApi, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
2
2
|
import { tags } from "typia";
|
|
3
|
+
import { IAutoBeRealizeCoderApplication } from "./IAutoBeRealizeCoderApplication";
|
|
3
4
|
import { FAILED } from "./IAutoBeRealizeFailedSymbol";
|
|
4
5
|
export declare namespace IAutoBeRealizeCompile {
|
|
6
|
+
export type Result = IAutoBeRealizeCompile.Success | IAutoBeRealizeCompile.Fail;
|
|
5
7
|
type IBase<T extends "success" | "failed"> = {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether code generation was attempted. "success" means code was
|
|
10
|
+
* generated, but compilation may still fail. "failed" means code generation
|
|
11
|
+
* was not possible (e.g., invalid input).
|
|
12
|
+
*/
|
|
6
13
|
type: T;
|
|
7
14
|
};
|
|
8
|
-
interface
|
|
15
|
+
export interface Success extends IBase<"success"> {
|
|
9
16
|
/**
|
|
10
17
|
* Operation: An object containing the function specification including the
|
|
11
18
|
* endpoint
|
|
12
19
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/** The name of the file where the implementation will be written */
|
|
17
|
-
filename: string;
|
|
18
|
-
/** The generated implementation code for the function */
|
|
19
|
-
implementationCode: string;
|
|
20
|
-
/** Function name */
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
export interface Success extends IBase<"success">, IOperation {
|
|
24
|
-
result: SuccessResult;
|
|
20
|
+
operation: AutoBeOpenApi.IOperation;
|
|
21
|
+
/** Result */
|
|
22
|
+
result: IAutoBeRealizeCoderApplication.RealizeCoderOutput;
|
|
25
23
|
}
|
|
26
|
-
export interface Fail extends IBase<"failed"
|
|
24
|
+
export interface Fail extends IBase<"failed"> {
|
|
25
|
+
/**
|
|
26
|
+
* Operation: An object containing the function specification including the
|
|
27
|
+
* endpoint
|
|
28
|
+
*/
|
|
29
|
+
operation: AutoBeOpenApi.IOperation;
|
|
30
|
+
/** Result */
|
|
27
31
|
result: FAILED;
|
|
28
32
|
}
|
|
29
|
-
export interface
|
|
33
|
+
export interface CodeArtifact {
|
|
30
34
|
result: "failed" | "success";
|
|
31
35
|
content: string;
|
|
32
36
|
role?: (string & tags.MinLength<1>) | null;
|
|
33
37
|
endpoint?: AutoBeOpenApi.IEndpoint;
|
|
34
|
-
location
|
|
38
|
+
location: string;
|
|
35
39
|
name?: string;
|
|
36
40
|
}
|
|
37
|
-
export type FileContentMap = Record<string,
|
|
41
|
+
export type FileContentMap = Record<string, CodeArtifact>;
|
|
38
42
|
export interface CompileDiagnostics {
|
|
39
43
|
/**
|
|
40
44
|
* Array containing all errors including previous attempts. Includes errors
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transformRealizeAuthorizationHistories = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
|
-
const AuthorizationFileSystem_1 = require("./utils/AuthorizationFileSystem");
|
|
6
5
|
const transformRealizeAuthorizationHistories = (ctx, role) => {
|
|
7
6
|
var _a;
|
|
8
7
|
return [
|
|
@@ -25,16 +24,13 @@ const transformRealizeAuthorizationHistories = (ctx, role) => {
|
|
|
25
24
|
"",
|
|
26
25
|
JSON.stringify((_a = ctx.state().prisma) === null || _a === void 0 ? void 0 : _a.schemas, null, 2),
|
|
27
26
|
"",
|
|
28
|
-
"##
|
|
27
|
+
"## Component Naming Convention",
|
|
29
28
|
"",
|
|
30
|
-
"Please
|
|
31
|
-
"",
|
|
32
|
-
"File locations:",
|
|
33
|
-
"",
|
|
34
|
-
`- Decorator Path : ${AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath("AdminAuth.ts")}`,
|
|
35
|
-
`- Payload Path : ${AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath("AdminPayload.ts")}`,
|
|
36
|
-
`- Provider Path : ${AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath("adminAuthorize.ts")}`,
|
|
29
|
+
"Please follow this naming convention for the authorization components:",
|
|
37
30
|
"",
|
|
31
|
+
`- Provider Name: ${role}Authorize (e.g. ${role}Authorize)`,
|
|
32
|
+
`- Decorator Name: ${role.charAt(0).toUpperCase() + role.slice(1)}Auth (e.g. ${role.charAt(0).toUpperCase() + role.slice(1)}Auth)`,
|
|
33
|
+
`- Payload Name: ${role.charAt(0).toUpperCase() + role.slice(1)}Payload (e.g. ${role.charAt(0).toUpperCase() + role.slice(1)}Payload)`,
|
|
38
34
|
].join("\n"),
|
|
39
35
|
},
|
|
40
36
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformRealizeAuthorization.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/transformRealizeAuthorization.ts"],"names":[],"mappings":";;;AAEA,+BAA0B;
|
|
1
|
+
{"version":3,"file":"transformRealizeAuthorization.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/transformRealizeAuthorization.ts"],"names":[],"mappings":";;;AAEA,+BAA0B;AAKnB,MAAM,sCAAsC,GAAG,CACpD,GAAoC,EACpC,IAAY,EAGZ,EAAE;;IACF,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,kiTAAkD;SACvD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE;gBACJ,SAAS;gBACT,EAAE;gBACF,IAAI;gBACJ,EAAE;gBACF,kBAAkB;gBAClB,EAAE;gBACF,IAAI,CAAC,SAAS,CAAC,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,MAAM,0CAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;gBACpD,EAAE;gBACF,gCAAgC;gBAChC,EAAE;gBACF,wEAAwE;gBACxE,EAAE;gBACF,oBAAoB,IAAI,mBAAmB,IAAI,YAAY;gBAC3D,qBAAqB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;gBAClI,mBAAmB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU;aACvI,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AApCW,QAAA,sCAAsC,0CAoCjD"}
|
|
@@ -63,6 +63,15 @@ const transformRealizeAuthorizationCorrectHistories = (ctx, auth, templateFiles,
|
|
|
63
63
|
"```json",
|
|
64
64
|
JSON.stringify(diagnostics, null, 2),
|
|
65
65
|
"```",
|
|
66
|
+
"## Component Naming Convention",
|
|
67
|
+
"",
|
|
68
|
+
"If the name of the component is not correct, please correct it.",
|
|
69
|
+
"",
|
|
70
|
+
"Please follow this naming convention for the authorization components:",
|
|
71
|
+
"",
|
|
72
|
+
`- Provider Name: ${auth.role.toLowerCase()}Authorize (e.g. ${auth.role.toLowerCase()}Authorize)`,
|
|
73
|
+
`- Decorator Name: ${auth.role.charAt(0).toUpperCase() + auth.role.slice(1).toLowerCase()}Auth (e.g. ${auth.role.charAt(0).toUpperCase() + auth.role.slice(1).toLowerCase()}Auth)`,
|
|
74
|
+
`- Payload Name: ${auth.role.charAt(0).toUpperCase() + auth.role.slice(1).toLowerCase()}Payload (e.g. ${auth.role.charAt(0).toUpperCase() + auth.role.slice(1).toLowerCase()}Payload)`,
|
|
66
75
|
].join("\n"),
|
|
67
76
|
},
|
|
68
77
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformRealizeAuthorizationCorrectHistories.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.ts"],"names":[],"mappings":";;;AAMA,+BAA0B;AAKnB,MAAM,6CAA6C,GAAG,CAC3D,GAAoC,EACpC,IAAgC,EAChC,aAAqC,EACrC,WAAyD,EAGzD,EAAE;;IACF,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,kiTAAkD;SACvD;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,kqKAA0D;SAC/D;QACD;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,EAAE;gBACF,SAAS;gBACT,GAAG,IAAI,CAAC,SAAS,CACf;oBACE,QAAQ,EAAE;wBACR,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;wBAChC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI;wBACxB,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO;qBAC/B;oBACD,SAAS,EAAE;wBACT,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ;wBACjC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;wBACzB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO;qBAChC;oBACD,OAAO,EAAE;wBACP,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;wBAC/B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;wBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;qBAC9B;iBACiD,EACpD,IAAI,EACJ,CAAC,CACF,EAAE;gBACH,KAAK;gBACL,EAAE;gBACF,kBAAkB;gBAClB,EAAE;gBACF,SAAS;gBACT,GAAG,IAAI,CAAC,SAAS,CAAC,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,MAAM,0CAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;gBACzD,KAAK;gBACL,EAAE;gBACF,eAAe;gBACf,EAAE;gBACF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;qBACvB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;qBAC1B,IAAI,CAAC,IAAI,CAAC;gBACb,EAAE;gBACF,mBAAmB;gBACnB,EAAE;gBACF,iDAAiD;gBACjD,EAAE;gBACF,SAAS;gBACT,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;gBACpC,KAAK;
|
|
1
|
+
{"version":3,"file":"transformRealizeAuthorizationCorrectHistories.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.ts"],"names":[],"mappings":";;;AAMA,+BAA0B;AAKnB,MAAM,6CAA6C,GAAG,CAC3D,GAAoC,EACpC,IAAgC,EAChC,aAAqC,EACrC,WAAyD,EAGzD,EAAE;;IACF,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACr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agentica/core";
|
|
2
|
-
import { IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
2
|
+
import { AutoBeRealizeAuthorization, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
3
3
|
import { AutoBeState } from "../../context/AutoBeState";
|
|
4
4
|
import { IAutoBeTestScenarioArtifacts } from "../test/structures/IAutoBeTestScenarioArtifacts";
|
|
5
5
|
import { RealizePlannerOutput } from "./orchestrateRealizePlanner";
|
|
6
|
-
|
|
6
|
+
import { IAutoBeRealizeCompile } from "./structures/IAutoBeRealizeCompile";
|
|
7
|
+
export declare const transformRealizeCoderHistories: (state: AutoBeState, previousCodes: IAutoBeRealizeCompile.Success[], props: RealizePlannerOutput, artifacts: IAutoBeTestScenarioArtifacts, previous: string | null, diagnostics: IAutoBeTypeScriptCompileResult.IDiagnostic[], authorization?: AutoBeRealizeAuthorization) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|