@autobe/agent 0.30.4-dev.20260324 → 0.30.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/LICENSE +661 -661
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/describe/image/orchestrateImageDescribeDraft.js +6 -6
- package/lib/describe/image/structures/IAutoBeImageDescribeDraftApplication.d.ts +12 -63
- package/lib/index.mjs +2918 -2842
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +8 -8
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +36 -37
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenarioReview.js +7 -7
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +55 -42
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +67 -54
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +30 -31
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +14 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +23 -96
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.d.ts +12 -40
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.d.ts +30 -88
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.d.ts +35 -94
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.d.ts +23 -93
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.d.ts +15 -88
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +76 -31
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +7 -7
- package/lib/orchestrate/common/structures/IAnalysisSectionEntry.d.ts +2 -8
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +8 -50
- package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +1 -9
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.d.ts +4 -23
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.d.ts +3 -21
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts +5 -17
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.d.ts +7 -76
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.d.ts +6 -89
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.d.ts +7 -93
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.d.ts +3 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.d.ts +3 -22
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +114 -139
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +90 -91
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +108 -132
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +72 -72
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +76 -77
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +130 -159
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +126 -155
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +114 -142
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +5 -5
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +100 -129
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +120 -149
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.d.ts +10 -97
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +14 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.d.ts +12 -90
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +12 -80
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +21 -116
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.d.ts +24 -112
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +11 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.d.ts +18 -96
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.d.ts +25 -107
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +5 -31
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.d.ts +6 -42
- package/lib/orchestrate/interface/utils/AutoBeJsonSchemaValidator.js +283 -283
- package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +41 -41
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +62 -63
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +40 -41
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +60 -61
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +112 -116
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js +48 -49
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +70 -71
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +118 -122
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +126 -131
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js.map +1 -1
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.d.ts +22 -99
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.d.ts +12 -109
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.d.ts +14 -100
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.d.ts +15 -108
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.d.ts +24 -106
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.d.ts +13 -76
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.d.ts +13 -111
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.d.ts +26 -97
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.d.ts +16 -93
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +20 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +22 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.js +7 -7
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js +86 -6
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +34 -34
- package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +54 -54
- package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +44 -44
- package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +42 -42
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +46 -46
- package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +44 -44
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.d.ts +18 -0
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +167 -8
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +17 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.d.ts +32 -92
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.d.ts +32 -114
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.d.ts +29 -106
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.d.ts +38 -131
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.d.ts +16 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.d.ts +16 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.d.ts +37 -155
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.d.ts +25 -88
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.d.ts +48 -181
- package/lib/orchestrate/realize/utils/generateTS2339Hints.d.ts +5 -3
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js +37 -19
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +2 -2
- package/lib/orchestrate/test/orchestrateTestScenario.js +22 -22
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +22 -22
- package/package.json +5 -5
- package/src/AutoBeMockAgent.ts +283 -283
- package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
- package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +12 -63
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +14 -52
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +23 -96
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +12 -40
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +30 -88
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +35 -94
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +23 -93
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +15 -88
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +92 -31
- package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +2 -8
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +8 -50
- package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +1 -9
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +4 -23
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +3 -21
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +5 -17
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +7 -76
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +6 -89
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +7 -93
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +3 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +3 -22
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRefine.ts +291 -291
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +309 -309
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +10 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +14 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +12 -90
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +12 -80
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +21 -116
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +24 -112
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +11 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +18 -96
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +25 -107
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +5 -31
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +6 -42
- package/src/orchestrate/interface/utils/AutoBeJsonSchemaValidator.ts +763 -763
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +22 -99
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +12 -109
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +14 -100
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +15 -108
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +24 -106
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +13 -76
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +13 -111
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +26 -97
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +16 -93
- package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +21 -1
- package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +26 -4
- package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +125 -9
- package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +1 -0
- package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +210 -7
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +17 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +32 -92
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +32 -114
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +29 -106
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +38 -131
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +16 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +16 -73
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +37 -155
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +25 -88
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +48 -181
- package/src/orchestrate/realize/utils/generateTS2339Hints.ts +39 -19
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +237 -237
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +322 -322
- package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -52
- package/src/structures/IAutoBeVendor.ts +127 -127
- package/README.md +0 -261
|
@@ -6,9 +6,12 @@ const uuid_1 = require("uuid");
|
|
|
6
6
|
const generateTS2339Hints_1 = require("../../realize/utils/generateTS2339Hints");
|
|
7
7
|
const printErrorHints_1 = require("../../realize/utils/printErrorHints");
|
|
8
8
|
const transformPreviousAndLatestCorrectHistory = (array) => {
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// P2-3: Summarize older failures when there are 3+ attempts
|
|
10
|
+
// Keep last 2 in full, summarize the rest
|
|
11
|
+
const summarized = summarizeOlderFailures(array);
|
|
12
|
+
return summarized.map((failure, i) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const isLatest = i === summarized.length - 1;
|
|
12
15
|
const ts2339Hints = isLatest
|
|
13
16
|
? (0, generateTS2339Hints_1.generateTS2339Hints)(failure.diagnostics)
|
|
14
17
|
: "";
|
|
@@ -18,53 +21,95 @@ const transformPreviousAndLatestCorrectHistory = (array) => {
|
|
|
18
21
|
text: utils_1.StringUtil.trim `
|
|
19
22
|
${isLatest
|
|
20
23
|
? "# Latest Failure"
|
|
21
|
-
:
|
|
22
|
-
|
|
24
|
+
: failure.script === ""
|
|
25
|
+
? utils_1.StringUtil.trim `
|
|
26
|
+
# Summary of Earlier Failures
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
${(_b = (_a = failure.diagnostics[0]) === null || _a === void 0 ? void 0 : _a.messageText) !== null && _b !== void 0 ? _b : "Multiple earlier correction attempts failed."}
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
Focus on the latest failure below and try a DIFFERENT approach.
|
|
31
|
+
`
|
|
32
|
+
: utils_1.StringUtil.trim `
|
|
33
|
+
# Previous Failure
|
|
29
34
|
|
|
30
|
-
|
|
31
|
-
repeat the same mistake. Change your approach to fix
|
|
32
|
-
the issue.
|
|
33
|
-
`}
|
|
35
|
+
This is the previous failure for your reference.
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
Never try to fix this previous failure code, but only
|
|
38
|
+
focus on the latest failure below. This is provided just
|
|
39
|
+
to give you context about your past mistakes.
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
If same mistake happens again, you must try to not
|
|
42
|
+
repeat the same mistake. Change your approach to fix
|
|
43
|
+
the issue.
|
|
44
|
+
`}
|
|
38
45
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
${failure.script !== ""
|
|
47
|
+
? utils_1.StringUtil.trim `
|
|
48
|
+
## Original Code
|
|
42
49
|
|
|
43
|
-
|
|
50
|
+
Here is the previous code you have to review and fix.
|
|
44
51
|
|
|
45
|
-
|
|
52
|
+
\`\`\`typescript
|
|
53
|
+
${failure.script}
|
|
54
|
+
\`\`\`
|
|
46
55
|
|
|
47
|
-
|
|
48
|
-
${JSON.stringify(failure.diagnostics)}
|
|
49
|
-
\`\`\`
|
|
56
|
+
## Compilation Errors
|
|
50
57
|
|
|
51
|
-
|
|
58
|
+
Here are the compilation errors found in the code above.
|
|
52
59
|
|
|
53
|
-
|
|
60
|
+
\`\`\`json
|
|
61
|
+
${JSON.stringify(failure.diagnostics)}
|
|
62
|
+
\`\`\`
|
|
54
63
|
|
|
55
|
-
|
|
64
|
+
## Error Annotated Code
|
|
56
65
|
|
|
57
|
-
|
|
58
|
-
Never fix code from this error annotated code. You must fix
|
|
59
|
-
the original code above.
|
|
66
|
+
Here is the error annotated code.
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
Please refer to the annotation for the location of the error.
|
|
62
69
|
|
|
63
|
-
|
|
70
|
+
By the way, note that, this code is only for reference purpose.
|
|
71
|
+
Never fix code from this error annotated code. You must fix
|
|
72
|
+
the original code above.
|
|
73
|
+
|
|
74
|
+
${(0, printErrorHints_1.printErrorHints)(failure.script, failure.diagnostics)}
|
|
75
|
+
|
|
76
|
+
${ts2339Hints}
|
|
77
|
+
`
|
|
78
|
+
: ""}
|
|
64
79
|
`,
|
|
65
80
|
created_at: new Date().toISOString(),
|
|
66
81
|
};
|
|
67
82
|
});
|
|
68
83
|
};
|
|
69
84
|
exports.transformPreviousAndLatestCorrectHistory = transformPreviousAndLatestCorrectHistory;
|
|
85
|
+
/**
|
|
86
|
+
* P2-3: When there are 3+ failure attempts, summarize the older ones to prevent
|
|
87
|
+
* context bloat. Keep the last 2 in full, collapse the rest into a single
|
|
88
|
+
* summary entry.
|
|
89
|
+
*/
|
|
90
|
+
const summarizeOlderFailures = (array) => {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
if (array.length <= 2)
|
|
93
|
+
return array;
|
|
94
|
+
const olderCount = array.length - 2;
|
|
95
|
+
const olderDiagCount = array
|
|
96
|
+
.slice(0, -2)
|
|
97
|
+
.reduce((sum, f) => sum + f.diagnostics.length, 0);
|
|
98
|
+
const summary = {
|
|
99
|
+
script: "",
|
|
100
|
+
diagnostics: [
|
|
101
|
+
{
|
|
102
|
+
file: (_b = (_a = array[0].diagnostics[0]) === null || _a === void 0 ? void 0 : _a.file) !== null && _b !== void 0 ? _b : null,
|
|
103
|
+
start: null,
|
|
104
|
+
length: null,
|
|
105
|
+
code: 0,
|
|
106
|
+
messageText: `[Summary of ${olderCount} previous correction attempts with ` +
|
|
107
|
+
`${olderDiagCount} total errors. The same fixes were attempted but ` +
|
|
108
|
+
`failed. Focus on the latest diagnostics below and try a DIFFERENT approach.]`,
|
|
109
|
+
category: "error",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
};
|
|
113
|
+
return [summary, ...array.slice(-2)];
|
|
114
|
+
};
|
|
70
115
|
//# sourceMappingURL=transformPreviousAndLatestCorrectHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformPreviousAndLatestCorrectHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts"],"names":[],"mappings":";;;AAEA,yCAA2C;AAC3C,+BAA0B;AAE1B,iFAA8E;AAC9E,yEAAsE;AAE/D,MAAM,wCAAwC,GAAG,CACtD,KAGE,EACwC,EAAE;IAC5C,
|
|
1
|
+
{"version":3,"file":"transformPreviousAndLatestCorrectHistory.js","sourceRoot":"","sources":["../../../../src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts"],"names":[],"mappings":";;;AAEA,yCAA2C;AAC3C,+BAA0B;AAE1B,iFAA8E;AAC9E,yEAAsE;AAE/D,MAAM,wCAAwC,GAAG,CACtD,KAGE,EACwC,EAAE;IAC5C,4DAA4D;IAC5D,0CAA0C;IAC1C,MAAM,UAAU,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAEjD,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;;QACnC,MAAM,QAAQ,GAAG,CAAC,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;QAC7C,MAAM,WAAW,GAAG,QAAQ;YAC1B,CAAC,CAAC,IAAA,yCAAmB,EAAC,OAAO,CAAC,WAAW,CAAC;YAC1C,CAAC,CAAC,EAAE,CAAC;QAEP,OAAO;YACL,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,kBAAU,CAAC,IAAI,CAAA;UAEjB,QAAQ;gBACN,CAAC,CAAC,kBAAkB;gBACpB,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,EAAE;oBACrB,CAAC,CAAC,kBAAU,CAAC,IAAI,CAAA;;;kBAGb,MAAA,MAAA,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,0CAAE,WAAW,mCAAI,8CAA8C;;;eAGxF;oBACD,CAAC,CAAC,kBAAU,CAAC,IAAI,CAAA;;;;;;;;;;;;eAavB;;UAGE,OAAO,CAAC,MAAM,KAAK,EAAE;gBACnB,CAAC,CAAC,kBAAU,CAAC,IAAI,CAAA;;;;;;gBAMb,OAAO,CAAC,MAAM;;;;;;;;gBAQd,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;gBAanC,IAAA,iCAAe,EAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC;;gBAEpD,WAAW;aACd;gBACD,CAAC,CAAC,EACN;OACD;YACD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AArFW,QAAA,wCAAwC,4CAqFnD;AAEF;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,CAC7B,KAGE,EAID,EAAE;;IACH,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAEpC,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACpC,MAAM,cAAc,GAAG,KAAK;SACzB,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACZ,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAErD,MAAM,OAAO,GAGT;QACF,MAAM,EAAE,EAAE;QACV,WAAW,EAAE;YACX;gBACE,IAAI,EAAE,MAAA,MAAA,KAAK,CAAC,CAAC,CAAE,CAAC,WAAW,CAAC,CAAC,CAAC,0CAAE,IAAI,mCAAI,IAAI;gBAC5C,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,CAAC;gBACP,WAAW,EACT,eAAe,UAAU,qCAAqC;oBAC9D,GAAG,cAAc,mDAAmD;oBACpE,8EAA8E;gBAChF,QAAQ,EAAE,OAAO;aAClB;SACF;KACF,CAAC;IAEF,OAAO,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC"}
|
|
@@ -200,15 +200,15 @@ const createController = (props) => {
|
|
|
200
200
|
type: "object",
|
|
201
201
|
properties: {
|
|
202
202
|
think: {
|
|
203
|
-
description: "Analysis of
|
|
203
|
+
description: "Analysis of the error pattern and chosen fix strategy.",
|
|
204
204
|
type: "string"
|
|
205
205
|
},
|
|
206
206
|
draft: {
|
|
207
|
-
description: "Draft code with initial syntax/type fixes applied
|
|
207
|
+
description: "Draft code with initial syntax/type fixes applied.",
|
|
208
208
|
type: "string"
|
|
209
209
|
},
|
|
210
210
|
revise: {
|
|
211
|
-
description: "
|
|
211
|
+
description: "Self-review pass that checks corrections and produces final code.",
|
|
212
212
|
$ref: "#/$defs/IAutoBeCommonCorrectCastingApplication.IReviseProps"
|
|
213
213
|
}
|
|
214
214
|
},
|
|
@@ -223,11 +223,11 @@ const createController = (props) => {
|
|
|
223
223
|
type: "object",
|
|
224
224
|
properties: {
|
|
225
225
|
review: {
|
|
226
|
-
description: "Review of
|
|
226
|
+
description: "Review of correction patterns applied and confirmation all errors\nresolved.",
|
|
227
227
|
type: "string"
|
|
228
228
|
},
|
|
229
229
|
final: {
|
|
230
|
-
description: "Final corrected code
|
|
230
|
+
description: "Final corrected code, or `null` when draft already resolves all issues.",
|
|
231
231
|
anyOf: [
|
|
232
232
|
{
|
|
233
233
|
type: "null"
|
|
@@ -245,7 +245,7 @@ const createController = (props) => {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
|
-
description: "Rewrite
|
|
248
|
+
description: "Rewrite code to fix severe syntax structure or type system errors.",
|
|
249
249
|
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, {
|
|
250
250
|
path: _path + ".think",
|
|
251
251
|
expected: "string",
|
|
@@ -308,7 +308,7 @@ const createController = (props) => {
|
|
|
308
308
|
required: [],
|
|
309
309
|
$defs: {}
|
|
310
310
|
},
|
|
311
|
-
description: "Reject
|
|
311
|
+
description: "Reject when error is outside scope (handled by subsequent agents).",
|
|
312
312
|
validate: (() => { const __is = input => true; let errors; let _report; return input => {
|
|
313
313
|
if (false === __is(input)) {
|
|
314
314
|
errors = [];
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A single ### section extracted from an analysis file,
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Instead of loading entire analysis files (~110-120KB each), the preliminary
|
|
6
|
-
* system can load individual sections (~200-600 words) identified by sequential
|
|
7
|
-
* integer IDs.
|
|
8
|
-
*
|
|
9
|
-
* @author Juntak
|
|
2
|
+
* A single ### section extracted from an analysis file, with parent hierarchy
|
|
3
|
+
* context and numeric ID.
|
|
10
4
|
*/
|
|
11
5
|
export interface IAnalysisSectionEntry {
|
|
12
6
|
/**
|
|
@@ -1,67 +1,25 @@
|
|
|
1
1
|
export interface IAutoBeCommonCorrectCastingApplication {
|
|
2
|
-
/**
|
|
3
|
-
* Rewrite function to fix severe syntax structure errors and type system
|
|
4
|
-
* errors.
|
|
5
|
-
*
|
|
6
|
-
* Called when detecting:
|
|
7
|
-
*
|
|
8
|
-
* - **Severe syntax errors**: Nested declarations in object literals, malformed
|
|
9
|
-
* structures
|
|
10
|
-
* - **Type system errors**: Typia tags, Date conversions, nullable narrowing,
|
|
11
|
-
* literal types
|
|
12
|
-
* - **Escape sequence errors**: Double backslashes in JSON context
|
|
13
|
-
*
|
|
14
|
-
* @param props The analysis and correction properties
|
|
15
|
-
*/
|
|
2
|
+
/** Rewrite code to fix severe syntax structure or type system errors. */
|
|
16
3
|
rewrite(props: IAutoBeCommonCorrectCastingApplication.IProps): void;
|
|
17
|
-
/**
|
|
18
|
-
* Reject function when error is outside scope.
|
|
19
|
-
*
|
|
20
|
-
* Called when error is unrelated (imports, undefined variables, business
|
|
21
|
-
* logic). These errors are handled by subsequent agents.
|
|
22
|
-
*/
|
|
4
|
+
/** Reject when error is outside scope (handled by subsequent agents). */
|
|
23
5
|
reject(): void;
|
|
24
6
|
}
|
|
25
7
|
export declare namespace IAutoBeCommonCorrectCastingApplication {
|
|
26
8
|
interface IProps {
|
|
27
|
-
/**
|
|
28
|
-
* Analysis of syntax structure or type system error.
|
|
29
|
-
*
|
|
30
|
-
* Identifies error pattern and chosen fix strategy:
|
|
31
|
-
*
|
|
32
|
-
* - Syntax: Nested declarations, malformed structures
|
|
33
|
-
* - Type: Tag incompatibility, nullable narrowing, Date conversions
|
|
34
|
-
*/
|
|
9
|
+
/** Analysis of the error pattern and chosen fix strategy. */
|
|
35
10
|
think: string;
|
|
36
|
-
/**
|
|
37
|
-
* Draft code with initial syntax/type fixes applied.
|
|
38
|
-
*
|
|
39
|
-
* After first correction round:
|
|
40
|
-
*
|
|
41
|
-
* - Syntax: Flattened declarations, restructured code
|
|
42
|
-
* - Type: Satisfies patterns, Date conversions, nullable checks
|
|
43
|
-
*/
|
|
11
|
+
/** Draft code with initial syntax/type fixes applied. */
|
|
44
12
|
draft: string;
|
|
45
|
-
/**
|
|
46
|
-
* Review and final code with all errors resolved.
|
|
47
|
-
*
|
|
48
|
-
* Review of applied fixes and final code ready for compilation.
|
|
49
|
-
*/
|
|
13
|
+
/** Self-review pass that checks corrections and produces final code. */
|
|
50
14
|
revise: IReviseProps;
|
|
51
15
|
}
|
|
52
16
|
interface IReviseProps {
|
|
53
17
|
/**
|
|
54
|
-
* Review of
|
|
55
|
-
*
|
|
56
|
-
* Explains strategies used and confirms all errors resolved.
|
|
18
|
+
* Review of correction patterns applied and confirmation all errors
|
|
19
|
+
* resolved.
|
|
57
20
|
*/
|
|
58
21
|
review: string;
|
|
59
|
-
/**
|
|
60
|
-
* Final corrected code ready for compilation.
|
|
61
|
-
*
|
|
62
|
-
* Code with all syntax/type errors fixed. Set to `null` when draft already
|
|
63
|
-
* resolves all issues with no further refinements needed.
|
|
64
|
-
*/
|
|
22
|
+
/** Final corrected code, or `null` when draft already resolves all issues. */
|
|
65
23
|
final: string | null;
|
|
66
24
|
}
|
|
67
25
|
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { AutoBeDatabase, AutoBeOpenApi, AutoBeRealizeCollectorFunction, AutoBeRealizeTransformerFunction } from "@autobe/interface";
|
|
2
2
|
import { IAnalysisSectionEntry } from "./IAnalysisSectionEntry";
|
|
3
|
-
/**
|
|
4
|
-
* Complete data collection for preliminary RAG system.
|
|
5
|
-
*
|
|
6
|
-
* Used in both `all` (globally available) and `local` (currently loaded)
|
|
7
|
-
* contexts of `AutoBePreliminaryController`. Contains current iteration data
|
|
8
|
-
* and optional previous iteration data for complement cycles.
|
|
9
|
-
*
|
|
10
|
-
* @author Samchon
|
|
11
|
-
*/
|
|
3
|
+
/** Complete data collection for the preliminary RAG system. */
|
|
12
4
|
export interface IAutoBePreliminaryCollection {
|
|
13
5
|
/** Individual ### sections from analysis files for fine-grained retrieval. */
|
|
14
6
|
analysisSections: IAnalysisSectionEntry[];
|
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
|
-
/**
|
|
3
|
-
* Request to retrieve individual analysis sections by numeric ID.
|
|
4
|
-
*
|
|
5
|
-
* Instead of loading entire analysis files (~110-120KB each), this loads
|
|
6
|
-
* specific ### sections (~200-600 words each) identified by integer IDs from
|
|
7
|
-
* the section catalog.
|
|
8
|
-
*
|
|
9
|
-
* @author Juntak
|
|
10
|
-
*/
|
|
2
|
+
/** Request to retrieve individual analysis sections by numeric ID. */
|
|
11
3
|
export interface IAutoBePreliminaryGetAnalysisSections {
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator for the request.
|
|
14
|
-
*
|
|
15
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
16
|
-
* task execution. Value "getAnalysisSections" indicates this is a preliminary
|
|
17
|
-
* data request for individual analysis sections.
|
|
18
|
-
*/
|
|
4
|
+
/** Type discriminator. */
|
|
19
5
|
type: "getAnalysisSections";
|
|
20
6
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* These are sequential integer IDs from the analysis sections catalog. Each
|
|
24
|
-
* ID maps to a specific ### section in the requirements documents.
|
|
25
|
-
*
|
|
26
|
-
* CRITICAL: DO NOT request the same section IDs that you have already
|
|
27
|
-
* requested in previous calls.
|
|
7
|
+
* Section IDs to retrieve. DO NOT request same IDs already requested in
|
|
8
|
+
* previous calls.
|
|
28
9
|
*/
|
|
29
10
|
sectionIds: (number & tags.Type<"uint32">)[] & tags.MinItems<1> & tags.MaxItems<100>;
|
|
30
11
|
}
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
|
-
/**
|
|
3
|
-
* Request to retrieve database schema definitions for context.
|
|
4
|
-
*
|
|
5
|
-
* This type is used in the preliminary phase to request specific database table
|
|
6
|
-
* schemas needed for generating type-safe API operations.
|
|
7
|
-
*
|
|
8
|
-
* @author Samchon
|
|
9
|
-
*/
|
|
2
|
+
/** Request to retrieve database schema definitions for context. */
|
|
10
3
|
export interface IAutoBePreliminaryGetDatabaseSchemas {
|
|
11
|
-
/**
|
|
12
|
-
* Type discriminator for the request.
|
|
13
|
-
*
|
|
14
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
15
|
-
* task execution. Value "getDatabaseSchemas" indicates this is a preliminary
|
|
16
|
-
* data request for database schemas.
|
|
17
|
-
*/
|
|
4
|
+
/** Type discriminator. */
|
|
18
5
|
type: "getDatabaseSchemas";
|
|
19
6
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Table names from the database schema representing database entities (e.g.,
|
|
23
|
-
* "user", "post", "comment").
|
|
24
|
-
*
|
|
25
|
-
* CRITICAL: DO NOT request the same schema names that you have already
|
|
7
|
+
* Database table names to retrieve. DO NOT request same names already
|
|
26
8
|
* requested in previous calls.
|
|
27
9
|
*/
|
|
28
10
|
schemaNames: string[] & tags.MinItems<1>;
|
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
2
|
import { tags } from "typia";
|
|
3
|
-
/**
|
|
4
|
-
* Request to retrieve existing interface operations for context.
|
|
5
|
-
*
|
|
6
|
-
* This type is used in the preliminary phase to request already-generated API
|
|
7
|
-
* operations for review, validation, or complementary generation tasks.
|
|
8
|
-
*
|
|
9
|
-
* @author Samchon
|
|
10
|
-
*/
|
|
3
|
+
/** Request to retrieve existing interface operations for context. */
|
|
11
4
|
export interface IAutoBePreliminaryGetInterfaceOperations {
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator for the request.
|
|
14
|
-
*
|
|
15
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
16
|
-
* task execution. Value "getInterfaceOperations" indicates this is a
|
|
17
|
-
* preliminary data request for interface operations.
|
|
18
|
-
*/
|
|
5
|
+
/** Type discriminator. */
|
|
19
6
|
type: "getInterfaceOperations";
|
|
20
7
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* Operations that have been generated in previous phases, containing paths,
|
|
24
|
-
* methods, parameters, and request/response bodies.
|
|
25
|
-
*
|
|
26
|
-
* CRITICAL: DO NOT request the same endpoints that you have already requested
|
|
27
|
-
* in previous calls.
|
|
8
|
+
* API operation endpoints to retrieve. DO NOT request same endpoints already
|
|
9
|
+
* requested in previous calls.
|
|
28
10
|
*/
|
|
29
11
|
endpoints: AutoBeOpenApi.IEndpoint[] & tags.MinItems<1>;
|
|
30
12
|
}
|
|
@@ -1,29 +1,11 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
|
-
/**
|
|
3
|
-
* Request to retrieve OpenAPI schema type definitions for context.
|
|
4
|
-
*
|
|
5
|
-
* This type is used in the preliminary phase to request specific schema
|
|
6
|
-
* definitions from components.schemas for review or complementary generation.
|
|
7
|
-
*
|
|
8
|
-
* @author Samchon
|
|
9
|
-
*/
|
|
2
|
+
/** Request to retrieve OpenAPI schema type definitions for context. */
|
|
10
3
|
export interface IAutoBePreliminaryGetInterfaceSchemas {
|
|
11
|
-
/**
|
|
12
|
-
* Type discriminator for the request.
|
|
13
|
-
*
|
|
14
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
15
|
-
* task execution. Value "getInterfaceSchemas" indicates this is a preliminary
|
|
16
|
-
* data request for interface schemas.
|
|
17
|
-
*/
|
|
4
|
+
/** Type discriminator. */
|
|
18
5
|
type: "getInterfaceSchemas";
|
|
19
6
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Schema names from the OpenAPI components.schemas section (e.g., "IUser",
|
|
23
|
-
* "IUser.ICreate", "IPost.IUpdate").
|
|
24
|
-
*
|
|
25
|
-
* CRITICAL: DO NOT request the same type names that you have already
|
|
26
|
-
* requested in previous calls.
|
|
7
|
+
* Schema type names to retrieve. DO NOT request same names already requested
|
|
8
|
+
* in previous calls.
|
|
27
9
|
*/
|
|
28
10
|
typeNames: string[] & tags.MinItems<1>;
|
|
29
11
|
}
|
package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
/**
|
|
3
|
-
* Request to retrieve
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Same as {@link IAutoBePreliminaryGetAnalysisSections} but for sections from
|
|
7
|
-
* the previous generation cycle, enabling comparison and consistency checks.
|
|
8
|
-
*
|
|
9
|
-
* @author Juntak
|
|
3
|
+
* Request to retrieve analysis sections from the previous iteration by numeric
|
|
4
|
+
* ID.
|
|
10
5
|
*/
|
|
11
6
|
export interface IAutoBePreliminaryGetPreviousAnalysisSections {
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator for the request.
|
|
14
|
-
*
|
|
15
|
-
* Value "getPreviousAnalysisSections" indicates this is a preliminary data
|
|
16
|
-
* request for analysis sections from the previous iteration.
|
|
17
|
-
*/
|
|
7
|
+
/** Type discriminator. */
|
|
18
8
|
type: "getPreviousAnalysisSections";
|
|
19
9
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* CRITICAL: DO NOT request the same section IDs that you have already
|
|
23
|
-
* requested in previous calls.
|
|
10
|
+
* Section IDs to retrieve from previous iteration. DO NOT request same IDs
|
|
11
|
+
* already requested in previous calls.
|
|
24
12
|
*/
|
|
25
13
|
sectionIds: (number & tags.Type<"uint32">)[] & tags.MinItems<1>;
|
|
26
14
|
}
|
|
@@ -1,86 +1,17 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
/**
|
|
3
|
-
* Request to retrieve database schemas from
|
|
3
|
+
* Request to retrieve database schemas from the previous iteration.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* artifacts from an earlier version.
|
|
9
|
-
*
|
|
10
|
-
* **Use Case:** When regenerating or modifying the database schema based on
|
|
11
|
-
* user change requests, agents need to reference the previously generated
|
|
12
|
-
* database schemas to understand the existing database structure and what needs
|
|
13
|
-
* to be modified.
|
|
14
|
-
*
|
|
15
|
-
* **Key Difference from `getDatabaseSchemas`:**
|
|
16
|
-
*
|
|
17
|
-
* - `getDatabaseSchemas`: Fetches schemas from the **current version** (the
|
|
18
|
-
* version being generated right now)
|
|
19
|
-
* - `getPreviousDatabaseSchemas`: Fetches schemas from the **previous version**
|
|
20
|
-
* (the last successfully generated version)
|
|
21
|
-
*
|
|
22
|
-
* **Example Scenario:**
|
|
23
|
-
*
|
|
24
|
-
* Initial generation:
|
|
25
|
-
* - DATABASE phase creates: users, posts, comments tables
|
|
26
|
-
* - Generation completes successfully
|
|
27
|
-
*
|
|
28
|
-
* User: "Add email verification status to users"
|
|
29
|
-
*
|
|
30
|
-
* Regeneration:
|
|
31
|
-
* - DATABASE phase starts regeneration
|
|
32
|
-
* - Calls getPreviousDatabaseSchemas(["users"])
|
|
33
|
-
* → Loads the previous version of users table schema
|
|
34
|
-
* - Creates new version with emailVerified field added
|
|
35
|
-
*
|
|
36
|
-
* **Waterfall + Spiral Pattern:**
|
|
37
|
-
*
|
|
38
|
-
* This aligns with AutoBE's regeneration cycles where:
|
|
39
|
-
*
|
|
40
|
-
* - Compilation failures trigger regeneration with corrections
|
|
41
|
-
* - User modifications trigger new versions
|
|
42
|
-
* - Previous schemas serve as reference for incremental changes
|
|
43
|
-
*
|
|
44
|
-
* @author Samchon
|
|
5
|
+
* Loads database table definitions from the last successfully generated
|
|
6
|
+
* version, used as reference context during regeneration or modification
|
|
7
|
+
* cycles.
|
|
45
8
|
*/
|
|
46
9
|
export interface IAutoBePreliminaryGetPreviousDatabaseSchemas {
|
|
47
|
-
/**
|
|
48
|
-
* Type discriminator for the request.
|
|
49
|
-
*
|
|
50
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
51
|
-
* task execution. Value "getPreviousDatabaseSchemas" indicates this is a
|
|
52
|
-
* preliminary data request for database schemas from a previous version.
|
|
53
|
-
*/
|
|
10
|
+
/** Type discriminator. */
|
|
54
11
|
type: "getPreviousDatabaseSchemas";
|
|
55
12
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* These are table schema names that were generated in a previous version and
|
|
59
|
-
* are needed as reference context for the current regeneration.
|
|
60
|
-
*
|
|
61
|
-
* **Important Notes:**
|
|
62
|
-
*
|
|
63
|
-
* - These schemas MUST exist in the previous version
|
|
64
|
-
* - This function is only available when a previous version exists
|
|
65
|
-
* - Used for reference/comparison, not for re-requesting within same execution
|
|
66
|
-
* - Table names are in snake_case (e.g., "shopping_sale", "bbs_article")
|
|
67
|
-
*
|
|
68
|
-
* **When This Function is Available:**
|
|
69
|
-
*
|
|
70
|
-
* - When a previous version exists
|
|
71
|
-
* - When user requests modifications to existing database schema
|
|
72
|
-
* - During correction/regeneration cycles that need previous schema context
|
|
73
|
-
*
|
|
74
|
-
* **When This Function is NOT Available:**
|
|
75
|
-
*
|
|
76
|
-
* - During initial generation (no previous version exists)
|
|
77
|
-
* - No previous database schemas available for this orchestration task
|
|
78
|
-
*
|
|
79
|
-
* **Example Table Names:**
|
|
80
|
-
*
|
|
81
|
-
* - "users", "posts", "comments"
|
|
82
|
-
* - "shopping_sales", "shopping_orders", "shopping_products"
|
|
83
|
-
* - "bbs_articles", "bbs_article_files"
|
|
13
|
+
* Table names to retrieve from previous iteration. DO NOT request same names
|
|
14
|
+
* already requested in previous calls.
|
|
84
15
|
*/
|
|
85
16
|
schemaNames: string[] & tags.MinItems<1>;
|
|
86
17
|
}
|