@autobe/agent 0.7.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +183 -12
- package/lib/AutoBeAgent.js +249 -65
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +2 -2
- package/lib/factory/index.d.ts +0 -1
- package/lib/factory/index.js +0 -1
- package/lib/factory/index.js.map +1 -1
- package/lib/index.mjs +1024 -663
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +7 -8
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -5
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +6 -8
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +9 -6
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +3 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +5 -8
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +5 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +3 -6
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +11 -7
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js +1 -1
- package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +4 -8
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +90 -60
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestProgress.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestProgress.js +75 -50
- package/lib/orchestrate/test/orchestrateTestProgress.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +617 -208
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +123 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +2 -1
- package/lib/orchestrate/test/transformTestCorrectHistories.js +14 -10
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestProgressHistories.d.ts +7 -1
- package/lib/orchestrate/test/transformTestProgressHistories.js +20 -20
- package/lib/orchestrate/test/transformTestProgressHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +1 -2
- package/lib/orchestrate/test/transformTestScenarioHistories.js +1 -77
- package/lib/orchestrate/test/transformTestScenarioHistories.js.map +1 -1
- package/lib/structures/IAutoBeConfig.d.ts +48 -10
- package/lib/structures/IAutoBeProps.d.ts +87 -0
- package/lib/structures/IAutoBeVendor.d.ts +64 -22
- package/lib/utils/backoffRetry.d.ts +7 -0
- package/lib/utils/backoffRetry.js +73 -0
- package/lib/utils/backoffRetry.js.map +1 -0
- package/lib/utils/enforceToolCall.d.ts +3 -0
- package/lib/utils/enforceToolCall.js +13 -0
- package/lib/utils/enforceToolCall.js.map +1 -0
- package/lib/utils/types/BackoffOptions.d.ts +12 -0
- package/lib/utils/types/BackoffOptions.js +3 -0
- package/lib/utils/types/BackoffOptions.js.map +1 -0
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +252 -52
- package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
- package/src/context/AutoBeContext.ts +7 -2
- package/src/factory/index.ts +0 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +5 -10
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +1 -1
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +12 -11
- package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +2 -1
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +4 -9
- package/src/orchestrate/prisma/orchestratePrisma.ts +1 -0
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +4 -1
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +6 -7
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +10 -7
- package/src/orchestrate/test/orchestrateTest.ts +6 -13
- package/src/orchestrate/test/orchestrateTestCorrect.ts +127 -78
- package/src/orchestrate/test/orchestrateTestProgress.ts +88 -47
- package/src/orchestrate/test/orchestrateTestScenario.ts +194 -105
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +132 -0
- package/src/orchestrate/test/transformTestCorrectHistories.ts +14 -10
- package/src/orchestrate/test/transformTestProgressHistories.ts +25 -22
- package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -79
- package/src/structures/IAutoBeConfig.ts +48 -10
- package/src/structures/IAutoBeProps.ts +91 -0
- package/src/structures/IAutoBeVendor.ts +64 -22
- package/src/utils/backoffRetry.ts +84 -0
- package/src/utils/enforceToolCall.ts +13 -0
- package/src/utils/types/BackoffOptions.ts +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,wDA4DC;;AA/ED,yCAAoE;AAUpE,kDAA0B;AAG1B,uEAAoE;AACpE,2DAA8D;AAC9D,iEAA8D;AAC9D,uEAA2D;AAC3D,mFAAgF;AAEhF,SAAsB,sBAAsB;yDAC1C,GAAyB,EACzB,KAA6B,EAC7B,SAA8C,EAC9C,OAAe,CAAC;;QAEhB,MAAM,WAAW,GAAmD,IAAI,GAAG,EAAE,CAAC;QAC9E,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE;YACpC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;QAEH,sDAAsD;QACtD,MAAM,SAAS,GAA2B,KAAK;aAC5C,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;YAC7B,OAAO;gBACL,CAAC,qBAAqB,QAAQ,EAAE,CAAC,EAAE,OAAO;aAC3C,CAAC;QACJ,CAAC,CAAC;aACD,MAAM,CAAyB,C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AE,EAAE;gBACxB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACqB;KACzB,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;IACb,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA8C;CACpD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutoBeOpenApi, AutoBeTestScenarioEvent, AutoBeTestWriteEvent } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
-
export declare function orchestrateTestProgress<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, scenarios:
|
|
4
|
+
export declare function orchestrateTestProgress<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, scenarios: AutoBeTestScenarioEvent.IScenario[]): Promise<AutoBeTestWriteEvent[]>;
|
|
5
|
+
export declare function filterDocument(scenario: AutoBeTestScenarioEvent.IScenario, document: AutoBeOpenApi.IDocument): AutoBeOpenApi.IDocument;
|
|
@@ -46,10 +46,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.orchestrateTestProgress = orchestrateTestProgress;
|
|
49
|
+
exports.filterDocument = filterDocument;
|
|
49
50
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
50
51
|
const core_1 = require("@agentica/core");
|
|
52
|
+
const openapi_1 = require("@samchon/openapi");
|
|
51
53
|
const typia_1 = __importDefault(require("typia"));
|
|
52
54
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
55
|
+
const enforceToolCall_1 = require("../../utils/enforceToolCall");
|
|
53
56
|
const transformTestProgressHistories_1 = require("./transformTestProgressHistories");
|
|
54
57
|
function orchestrateTestProgress(ctx, scenarios) {
|
|
55
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -57,15 +60,15 @@ function orchestrateTestProgress(ctx, scenarios) {
|
|
|
57
60
|
let complete = 0;
|
|
58
61
|
const events = yield Promise.all(
|
|
59
62
|
/**
|
|
60
|
-
* Generate test code for each scenario. Maps through
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
+
* Generate test code for each scenario. Maps through plans array to create
|
|
64
|
+
* individual test code implementations. Each scenario is processed to
|
|
65
|
+
* generate corresponding test code and progress events.
|
|
63
66
|
*/
|
|
64
67
|
scenarios.map((scenario) => __awaiter(this, void 0, void 0, function* () {
|
|
65
68
|
var _a, _b;
|
|
66
69
|
const code = yield process(ctx, scenario);
|
|
67
70
|
const event = {
|
|
68
|
-
type: "
|
|
71
|
+
type: "testWrite",
|
|
69
72
|
created_at: start.toISOString(),
|
|
70
73
|
filename: `${code.domain}/${scenario.functionName}.ts`,
|
|
71
74
|
content: code.content,
|
|
@@ -91,29 +94,23 @@ function orchestrateTestProgress(ctx, scenarios) {
|
|
|
91
94
|
*/
|
|
92
95
|
function process(ctx, scenario) {
|
|
93
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
var _a
|
|
97
|
+
var _a;
|
|
95
98
|
const pointer = {
|
|
96
99
|
value: null,
|
|
97
100
|
};
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
})
|
|
102
|
-
.reduce((acc, [filename, content]) => {
|
|
103
|
-
return Object.assign(acc, { [filename]: content });
|
|
104
|
-
}, {});
|
|
105
|
-
const dtoFiles = Object.entries((_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.files) !== null && _d !== void 0 ? _d : {})
|
|
106
|
-
.filter(([filename]) => {
|
|
107
|
-
return filename.startsWith("src/api/structures/");
|
|
108
|
-
})
|
|
109
|
-
.reduce((acc, [filename, content]) => {
|
|
110
|
-
return Object.assign(acc, { [filename]: content });
|
|
111
|
-
}, {});
|
|
101
|
+
const document = filterDocument(scenario, ctx.state().interface.document);
|
|
102
|
+
const files = Object.entries(yield ctx.compiler.interface.compile(document));
|
|
103
|
+
const filter = (prefix) => Object.fromEntries(files.filter(([key]) => key.startsWith(prefix)));
|
|
112
104
|
const agentica = new core_1.MicroAgentica({
|
|
113
105
|
model: ctx.model,
|
|
114
106
|
vendor: ctx.vendor,
|
|
115
|
-
config: Object.assign({}, ((
|
|
116
|
-
histories: (0, transformTestProgressHistories_1.transformTestProgressHistories)(
|
|
107
|
+
config: Object.assign({}, ((_a = ctx.config) !== null && _a !== void 0 ? _a : {})),
|
|
108
|
+
histories: (0, transformTestProgressHistories_1.transformTestProgressHistories)({
|
|
109
|
+
scenario: scenario,
|
|
110
|
+
dto: filter("src/api/structures"),
|
|
111
|
+
sdk: filter("src/api/functional"),
|
|
112
|
+
e2e: filter("test/features"),
|
|
113
|
+
}),
|
|
117
114
|
controllers: [
|
|
118
115
|
createApplication({
|
|
119
116
|
model: ctx.model,
|
|
@@ -122,23 +119,51 @@ function process(ctx, scenario) {
|
|
|
122
119
|
},
|
|
123
120
|
}),
|
|
124
121
|
],
|
|
122
|
+
tokenUsage: ctx.usage(),
|
|
125
123
|
});
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
event.body.tool_choice = "required";
|
|
129
|
-
}));
|
|
130
|
-
yield agentica.conversate([
|
|
131
|
-
"Create test code for below scenario:",
|
|
132
|
-
"",
|
|
133
|
-
"```json",
|
|
134
|
-
JSON.stringify(scenario, null, 2),
|
|
135
|
-
"```",
|
|
136
|
-
].join("\n"));
|
|
124
|
+
(0, enforceToolCall_1.enforceToolCall)(agentica);
|
|
125
|
+
yield agentica.conversate("Create e2e test functions.");
|
|
137
126
|
if (pointer.value === null)
|
|
138
127
|
throw new Error("Failed to create test code.");
|
|
139
128
|
return pointer.value;
|
|
140
129
|
});
|
|
141
130
|
}
|
|
131
|
+
function filterDocument(scenario, document) {
|
|
132
|
+
const operations = document.operations.filter((op) => {
|
|
133
|
+
if (scenario.endpoint.method === op.method &&
|
|
134
|
+
scenario.endpoint.path === op.path) {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
else if (scenario.dependencies.some((dp) => dp.endpoint.method === op.method && dp.endpoint.path === op.path)) {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
const components = {
|
|
142
|
+
schemas: {},
|
|
143
|
+
};
|
|
144
|
+
const visit = (typeName) => {
|
|
145
|
+
openapi_1.OpenApiTypeChecker.visit({
|
|
146
|
+
components: document.components,
|
|
147
|
+
schema: { $ref: `#/components/schemas/${typeName}` },
|
|
148
|
+
closure: (s) => {
|
|
149
|
+
if (openapi_1.OpenApiTypeChecker.isReference(s)) {
|
|
150
|
+
const key = s.$ref.split("/").pop();
|
|
151
|
+
components.schemas[key] = document.components.schemas[key];
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
for (const op of operations) {
|
|
157
|
+
if (op.requestBody)
|
|
158
|
+
visit(op.requestBody.typeName);
|
|
159
|
+
if (op.responseBody)
|
|
160
|
+
visit(op.responseBody.typeName);
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
operations,
|
|
164
|
+
components,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
142
167
|
function createApplication(props) {
|
|
143
168
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
144
169
|
const application = collection[props.model];
|
|
@@ -166,9 +191,9 @@ const claude = {
|
|
|
166
191
|
description: "Current Type: {@link ICreateTestCodeProps}",
|
|
167
192
|
type: "object",
|
|
168
193
|
properties: {
|
|
169
|
-
|
|
194
|
+
scenario: {
|
|
170
195
|
title: "Strategic approach for test implementation",
|
|
171
|
-
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception
|
|
196
|
+
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception plans\n- Define cleanup and teardown procedures\n- Identify dependencies and prerequisites\n\n### Example Plan:\n\n Test Strategy: Article Creation Validation\n 1. Prepare valid article data with required fields\n 2. Execute POST request to create article\n 3. Validate response structure and data integrity\n 4. Test error plans (missing fields, invalid data)\n 5. Verify database state changes\n 6. Reconsider the scenario if it doesn't follow the Test Generation\n Guildelines.",
|
|
172
197
|
type: "string"
|
|
173
198
|
},
|
|
174
199
|
domain: {
|
|
@@ -183,17 +208,17 @@ const claude = {
|
|
|
183
208
|
}
|
|
184
209
|
},
|
|
185
210
|
required: [
|
|
186
|
-
"
|
|
211
|
+
"scenario",
|
|
187
212
|
"domain",
|
|
188
213
|
"content"
|
|
189
214
|
],
|
|
190
215
|
additionalProperties: false,
|
|
191
216
|
$defs: {}
|
|
192
217
|
},
|
|
193
|
-
validate: (() => { const _io0 = input => "string" === typeof input.
|
|
194
|
-
path: _path + ".
|
|
218
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
219
|
+
path: _path + ".scenario",
|
|
195
220
|
expected: "string",
|
|
196
|
-
value: input.
|
|
221
|
+
value: input.scenario
|
|
197
222
|
}), "string" === typeof input.domain || _report(_exceptionable, {
|
|
198
223
|
path: _path + ".domain",
|
|
199
224
|
expected: "string",
|
|
@@ -248,9 +273,9 @@ const collection = {
|
|
|
248
273
|
description: "Current Type: {@link ICreateTestCodeProps}",
|
|
249
274
|
type: "object",
|
|
250
275
|
properties: {
|
|
251
|
-
|
|
276
|
+
scenario: {
|
|
252
277
|
title: "Strategic approach for test implementation",
|
|
253
|
-
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception
|
|
278
|
+
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception plans\n- Define cleanup and teardown procedures\n- Identify dependencies and prerequisites\n\n### Example Plan:\n\n Test Strategy: Article Creation Validation\n 1. Prepare valid article data with required fields\n 2. Execute POST request to create article\n 3. Validate response structure and data integrity\n 4. Test error plans (missing fields, invalid data)\n 5. Verify database state changes\n 6. Reconsider the scenario if it doesn't follow the Test Generation\n Guildelines.",
|
|
254
279
|
type: "string"
|
|
255
280
|
},
|
|
256
281
|
domain: {
|
|
@@ -265,17 +290,17 @@ const collection = {
|
|
|
265
290
|
}
|
|
266
291
|
},
|
|
267
292
|
required: [
|
|
268
|
-
"
|
|
293
|
+
"scenario",
|
|
269
294
|
"domain",
|
|
270
295
|
"content"
|
|
271
296
|
],
|
|
272
297
|
additionalProperties: false,
|
|
273
298
|
$defs: {}
|
|
274
299
|
},
|
|
275
|
-
validate: (() => { const _io0 = input => "string" === typeof input.
|
|
276
|
-
path: _path + ".
|
|
300
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
301
|
+
path: _path + ".scenario",
|
|
277
302
|
expected: "string",
|
|
278
|
-
value: input.
|
|
303
|
+
value: input.scenario
|
|
279
304
|
}), "string" === typeof input.domain || _report(_exceptionable, {
|
|
280
305
|
path: _path + ".domain",
|
|
281
306
|
expected: "string",
|
|
@@ -332,10 +357,10 @@ const collection = {
|
|
|
332
357
|
parameters: {
|
|
333
358
|
type: "object",
|
|
334
359
|
properties: {
|
|
335
|
-
|
|
360
|
+
scenario: {
|
|
336
361
|
type: "string",
|
|
337
362
|
title: "Strategic approach for test implementation",
|
|
338
|
-
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception
|
|
363
|
+
description: "Strategic approach for test implementation.\n\nDefine the high-level strategy and logical flow for testing the given\nscenario. Focus on test methodology, data preparation, and assertion\nstrategy.\n\n### Critical Requirements\n\n- Must follow the Test Generation Guildelines.\n- Must Planning the test code Never occur the typescript compile error.\n\n### Planning Elements:\n\n#### Test Methodology\n\n- Identify test scenario type (CRUD operation, authentication flow,\n validation test)\n- Define test data requirements and preparation strategy\n- Plan positive/negative test cases and edge cases\n- Design assertion logic and validation points\n\n#### Execution Strategy\n\n- Outline step-by-step test execution flow\n- Plan error handling and exception plans\n- Define cleanup and teardown procedures\n- Identify dependencies and prerequisites\n\n### Example Plan:\n\n Test Strategy: Article Creation Validation\n 1. Prepare valid article data with required fields\n 2. Execute POST request to create article\n 3. Validate response structure and data integrity\n 4. Test error plans (missing fields, invalid data)\n 5. Verify database state changes\n 6. Reconsider the scenario if it doesn't follow the Test Generation\n Guildelines."
|
|
339
364
|
},
|
|
340
365
|
domain: {
|
|
341
366
|
type: "string",
|
|
@@ -349,17 +374,17 @@ const collection = {
|
|
|
349
374
|
}
|
|
350
375
|
},
|
|
351
376
|
required: [
|
|
352
|
-
"
|
|
377
|
+
"scenario",
|
|
353
378
|
"domain",
|
|
354
379
|
"content"
|
|
355
380
|
],
|
|
356
381
|
description: "Current Type: {@link ICreateTestCodeProps}",
|
|
357
382
|
additionalProperties: false
|
|
358
383
|
},
|
|
359
|
-
validate: (() => { const _io0 = input => "string" === typeof input.
|
|
360
|
-
path: _path + ".
|
|
384
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
385
|
+
path: _path + ".scenario",
|
|
361
386
|
expected: "string",
|
|
362
|
-
value: input.
|
|
387
|
+
value: input.scenario
|
|
363
388
|
}), "string" === typeof input.domain || _report(_exceptionable, {
|
|
364
389
|
path: _path + ".domain",
|
|
365
390
|
expected: "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestProgress.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestProgress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestProgress.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestProgress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,0DA8BC;AA0DD,wCA4CC;;AAvJD,yCAAoE;AAMpE,8CAI0B;AAE1B,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,qFAAkF;AAElF,SAAsB,uBAAuB,CAC3C,GAAyB,EACzB,SAA8C;;QAE9C,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,QAAQ,GAAW,CAAC,CAAC;QAEzB,MAAM,MAAM,GAA2B,MAAM,OAAO,CAAC,GAAG;QACtD;;;;WAIG;QACH,SAAS,CAAC,GAAG,CAAC,CAAO,QAAQ,EAAE,EAAE;;YAC/B,MAAM,IAAI,GAAyB,MAAM,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAChE,MAAM,KAAK,GAAyB;gBAClC,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,KAAK,CAAC,WAAW,EAAE;gBAC/B,QAAQ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AAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACqB;KACzB,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;IACb,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA8C;CACpD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutoBeTestScenarioEvent } from "@autobe/interface
|
|
1
|
+
import { AutoBeTestScenarioEvent } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
4
|
export declare function orchestrateTestScenario<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>): Promise<AutoBeTestScenarioEvent>;
|