@autobe/agent 0.20.0 → 0.21.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/agent/src/AutoBeMockAgent.js +1 -0
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -1
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +10 -9
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/agent/src/context/AutoBeContext.d.ts +2 -2
- package/lib/agent/src/factory/createAutoBeContext.js +3 -1
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +33 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +6 -6
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js +5 -3
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +10 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +365 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +6 -6
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1633 -1198
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +60 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +40 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +4 -4
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +4 -4
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +7 -2
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +3 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +41 -25
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +3 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +118 -96
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +10 -10
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +28 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +10 -9
- package/lib/context/AutoBeContext.d.ts +2 -2
- package/lib/index.mjs +2315 -1526
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +10 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +60 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +40 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +2 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +7 -2
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +3 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +3 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +28 -1
- package/package.json +6 -6
- package/src/AutoBeMockAgent.ts +1 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +10 -9
- package/src/context/AutoBeContext.ts +2 -0
- package/src/factory/createAutoBeContext.ts +2 -1
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +39 -0
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +5 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +95 -0
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +118 -10
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.ts +65 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +42 -0
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +7 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +6 -2
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +10 -5
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +2 -0
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +46 -34
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +24 -4
- package/src/orchestrate/test/orchestrateTestCorrect.ts +5 -1
- package/src/orchestrate/test/orchestrateTestWrite.ts +1 -1
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +28 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js +0 -75
- package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +0 -1
- package/lib/orchestrate/test/histories/transformTestHistories.d.ts +0 -3
- package/src/orchestrate/test/histories/transformTestHistories.ts +0 -78
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
3
|
+
import { AutoBeState } from "../../../context/AutoBeState";
|
|
4
|
+
export declare const transformInterfaceEndpointsReviewHistories: (state: AutoBeState, endpoints: AutoBeOpenApi.IEndpoint[]) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
+
import { IAutoBeInterfaceEndpointsReviewApplication } from "./structures/IAutoBeInterfaceEndpointsReviewApplication";
|
|
6
|
+
export declare function orchestrateInterfaceEndpointsReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, endpoints: AutoBeOpenApi.IEndpoint[], message?: string): Promise<AutoBeOpenApi.IEndpoint[]>;
|
|
7
|
+
export declare function createController<Model extends ILlmSchema.Model>(props: {
|
|
8
|
+
model: Model;
|
|
9
|
+
build: (props: IAutoBeInterfaceEndpointsReviewApplication.IProps) => void;
|
|
10
|
+
}): IAgenticaController.IClass<Model>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Interface for reviewing and refining API endpoints through holistic analysis.
|
|
4
|
+
*
|
|
5
|
+
* This application performs comprehensive review of all endpoints generated
|
|
6
|
+
* through divide-and-conquer strategy, ensuring consistency, eliminating
|
|
7
|
+
* redundancy, and preventing over-engineering across the entire API surface.
|
|
8
|
+
*/
|
|
9
|
+
export interface IAutoBeInterfaceEndpointsReviewApplication {
|
|
10
|
+
/**
|
|
11
|
+
* Reviews and refines the complete collection of API endpoints.
|
|
12
|
+
*
|
|
13
|
+
* This method consolidates all endpoints generated independently by different
|
|
14
|
+
* groups and performs holistic review to:
|
|
15
|
+
* - Ensure naming consistency across all endpoints
|
|
16
|
+
* - Remove duplicate or overlapping endpoints
|
|
17
|
+
* - Eliminate over-engineered solutions
|
|
18
|
+
* - Standardize path structures and HTTP methods
|
|
19
|
+
* - Verify REST API design principles
|
|
20
|
+
*
|
|
21
|
+
* The review process examines the entire API as a cohesive system rather
|
|
22
|
+
* than individual endpoints, ensuring the final API is intuitive, maintainable,
|
|
23
|
+
* and follows best practices.
|
|
24
|
+
*
|
|
25
|
+
* @param next - The review results and refined endpoint collection
|
|
26
|
+
*/
|
|
27
|
+
reviewEndpoints(next: IAutoBeInterfaceEndpointsReviewApplication.IProps): void;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace IAutoBeInterfaceEndpointsReviewApplication {
|
|
30
|
+
interface IProps {
|
|
31
|
+
/**
|
|
32
|
+
* Comprehensive review analysis of all collected endpoints.
|
|
33
|
+
*
|
|
34
|
+
* Contains detailed findings from the holistic review including:
|
|
35
|
+
* - Identified inconsistencies in naming conventions
|
|
36
|
+
* - Duplicate endpoints that serve the same purpose
|
|
37
|
+
* - Over-engineered solutions that add unnecessary complexity
|
|
38
|
+
* - Violations of REST API design principles
|
|
39
|
+
* - Recommendations for improvement and standardization
|
|
40
|
+
*
|
|
41
|
+
* The review provides actionable feedback for creating a clean,
|
|
42
|
+
* consistent, and maintainable API structure.
|
|
43
|
+
*/
|
|
44
|
+
review: string;
|
|
45
|
+
/**
|
|
46
|
+
* Refined collection of API endpoints after review and cleanup.
|
|
47
|
+
*
|
|
48
|
+
* The final optimized set of endpoints after:
|
|
49
|
+
* - Removing duplicates and redundant endpoints
|
|
50
|
+
* - Standardizing naming conventions across all paths
|
|
51
|
+
* - Simplifying over-engineered solutions
|
|
52
|
+
* - Ensuring consistent REST patterns
|
|
53
|
+
* - Aligning HTTP methods with their semantic meanings
|
|
54
|
+
*
|
|
55
|
+
* This collection represents the production-ready API structure
|
|
56
|
+
* that balances functionality with simplicity and maintainability.
|
|
57
|
+
*/
|
|
58
|
+
endpoints: AutoBeOpenApi.IEndpoint[];
|
|
59
|
+
}
|
|
60
|
+
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts
CHANGED
|
@@ -166,5 +166,45 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
166
166
|
* database structure and business logic requirements.
|
|
167
167
|
*/
|
|
168
168
|
prisma_schemas: string;
|
|
169
|
+
/**
|
|
170
|
+
* Primary Prisma model name for this operation.
|
|
171
|
+
*
|
|
172
|
+
* Identifies the main database table/model that this operation targets.
|
|
173
|
+
* This must match exactly with the Prisma model name defined in the schema.
|
|
174
|
+
* When soft deletion is specified, this model name indicates which table
|
|
175
|
+
* should be soft-deleted.
|
|
176
|
+
*
|
|
177
|
+
* For example:
|
|
178
|
+
* - In a "GET /users/:id" operation, this would be "User"
|
|
179
|
+
* - In a "POST /articles" operation, this would be "Article"
|
|
180
|
+
* - In a "DELETE /comments/:id" with soft delete, this specifies the "Comment" model to soft-delete
|
|
181
|
+
*
|
|
182
|
+
* This property is essential for:
|
|
183
|
+
* - Determining the primary entity for CRUD operations
|
|
184
|
+
* - Identifying which table to apply soft deletion to
|
|
185
|
+
* - Validating operations against the correct Prisma model
|
|
186
|
+
* - Generating appropriate database queries and validations
|
|
187
|
+
*/
|
|
188
|
+
model_name: string;
|
|
189
|
+
/**
|
|
190
|
+
* Soft delete column name for the Prisma models.
|
|
191
|
+
*
|
|
192
|
+
* Specifies the column name used for soft deletion in the database tables
|
|
193
|
+
* associated with this operation. When set to a non-null value, it indicates
|
|
194
|
+
* that the related entities support soft deletion through this column
|
|
195
|
+
* (typically a timestamp field like `deleted_at` or `deletedAt`).
|
|
196
|
+
*
|
|
197
|
+
* When null, it means the entities involved in this operation use hard
|
|
198
|
+
* deletion or don't support deletion at all. This information is crucial
|
|
199
|
+
* for generating appropriate CRUD operations and ensuring data integrity
|
|
200
|
+
* policies are correctly implemented.
|
|
201
|
+
*
|
|
202
|
+
* Common soft delete patterns:
|
|
203
|
+
* - `"deleted_at"`: Records deletion timestamp
|
|
204
|
+
* - `"deletedAt"`: Camel-cased deletion timestamp
|
|
205
|
+
* - `"is_deleted"`: Boolean flag for deletion status
|
|
206
|
+
* - `null`: No soft deletion (hard delete only)
|
|
207
|
+
*/
|
|
208
|
+
soft_delete_column: string | null;
|
|
169
209
|
}
|
|
170
210
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
|
|
1
|
+
import { AutoBeOpenApi, AutoBeRealizeAuthorization, AutoBeTestFile } from "@autobe/interface";
|
|
2
2
|
export declare namespace IAutoBeRealizeScenarioApplication {
|
|
3
3
|
interface IProps {
|
|
4
4
|
/** The OpenAPI operation to be realized. */
|
|
@@ -24,7 +24,7 @@ export declare namespace IAutoBeRealizeScenarioApplication {
|
|
|
24
24
|
* certain conditions. Used as a basis for TDD-style automated test
|
|
25
25
|
* generation.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
testFiles: AutoBeTestFile[];
|
|
28
28
|
/**
|
|
29
29
|
* Optional decorator event for customizing code generation behavior.
|
|
30
30
|
*
|
|
@@ -17,13 +17,16 @@ export declare namespace IAutoBeRealizeWriteApplication {
|
|
|
17
17
|
* 📋 STEP 1 - PRISMA SCHEMA VERIFICATION:
|
|
18
18
|
*
|
|
19
19
|
* DO:
|
|
20
|
+
*
|
|
20
21
|
* - Examine the actual Prisma schema model definition
|
|
21
22
|
* - List EVERY field that exists in the model with exact types
|
|
22
23
|
* - Explicitly note fields that DO NOT exist
|
|
23
24
|
*
|
|
24
25
|
* DO NOT:
|
|
26
|
+
*
|
|
25
27
|
* - Assume common fields exist without verification
|
|
26
|
-
* - Use fields like deleted_at, created_by, updated_by, is_deleted, is_active
|
|
28
|
+
* - Use fields like deleted_at, created_by, updated_by, is_deleted, is_active
|
|
29
|
+
* without checking
|
|
27
30
|
*
|
|
28
31
|
* 📋 STEP 2 - FIELD INVENTORY:
|
|
29
32
|
*
|
|
@@ -171,10 +174,12 @@ export declare namespace IAutoBeRealizeWriteApplication {
|
|
|
171
174
|
* Import rules:
|
|
172
175
|
*
|
|
173
176
|
* DO NOT:
|
|
177
|
+
*
|
|
174
178
|
* - Add any new import statements manually
|
|
175
179
|
* - Write import statements directly (this causes compile errors)
|
|
176
180
|
*
|
|
177
|
-
* Note: All necessary imports are provided globally or by the system
|
|
181
|
+
* Note: All necessary imports are provided globally or by the system
|
|
182
|
+
* automatically.
|
|
178
183
|
*
|
|
179
184
|
* ✅ Requirements:
|
|
180
185
|
*
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
2
|
import { IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../../context/AutoBeContext";
|
|
3
5
|
import { IAutoBeTestFunction } from "../structures/IAutoBeTestFunction";
|
|
4
|
-
export declare const transformTestCorrectHistories: (func: IAutoBeTestFunction, failure: IAutoBeTypeScriptCompileResult.IFailure) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage
|
|
6
|
+
export declare const transformTestCorrectHistories: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, func: IAutoBeTestFunction, failure: IAutoBeTypeScriptCompileResult.IFailure) => Promise<Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
2
|
import { AutoBeTestScenario } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../../context/AutoBeContext";
|
|
3
5
|
import { IAutoBeTestScenarioArtifacts } from "../structures/IAutoBeTestScenarioArtifacts";
|
|
4
|
-
export declare function transformTestWriteHistories(scenario: AutoBeTestScenario, artifacts: IAutoBeTestScenarioArtifacts): Array<IAgenticaHistoryJson.ISystemMessage
|
|
6
|
+
export declare function transformTestWriteHistories<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, scenario: AutoBeTestScenario, artifacts: IAutoBeTestScenarioArtifacts): Promise<Array<IAgenticaHistoryJson.ISystemMessage | IAgenticaHistoryJson.IAssistantMessage>>;
|
|
5
7
|
export declare namespace transformTestWriteHistories {
|
|
6
8
|
function structures(artifacts: IAutoBeTestScenarioArtifacts): string;
|
|
7
9
|
function functional(artifacts: IAutoBeTestScenarioArtifacts): string;
|
|
@@ -28,6 +28,18 @@ export declare namespace IAutoBeTestScenarioApplication {
|
|
|
28
28
|
*
|
|
29
29
|
* Each scenario represents a specific test case for the same `path` and
|
|
30
30
|
* `method`.
|
|
31
|
+
*
|
|
32
|
+
* IMPORTANT: Each scenario must be actually implementable. A scenario's
|
|
33
|
+
* implementability is determined by the existence of ALL APIs (endpoints)
|
|
34
|
+
* required to test it. This includes not only the primary endpoint being
|
|
35
|
+
* tested, but also ALL dependency endpoints needed for setup,
|
|
36
|
+
* authentication, and data preparation. If even one required dependency API
|
|
37
|
+
* is missing from the available operations, the scenario cannot be
|
|
38
|
+
* implemented and should not be generated.
|
|
39
|
+
*
|
|
40
|
+
* Example: A "test banned user login" scenario requires both a login API
|
|
41
|
+
* AND a ban user API. If the ban API doesn't exist, this scenario is not
|
|
42
|
+
* implementable regardless of database schema fields.
|
|
31
43
|
*/
|
|
32
44
|
scenarios: IScenario[] & tags.MinItems<1>;
|
|
33
45
|
}
|
|
@@ -37,6 +49,11 @@ export declare namespace IAutoBeTestScenarioApplication {
|
|
|
37
49
|
* This interface defines a structured, user-centric test draft that includes
|
|
38
50
|
* a descriptive function name, a detailed scenario draft, and logical
|
|
39
51
|
* dependencies on other endpoints required for context or setup.
|
|
52
|
+
*
|
|
53
|
+
* CRITICAL: All referenced endpoints MUST exist in the provided API
|
|
54
|
+
* operations. Do NOT create scenarios for non-existent APIs, even if database
|
|
55
|
+
* schema fields suggest their existence. Test scenarios must be implementable
|
|
56
|
+
* with available APIs only.
|
|
40
57
|
*/
|
|
41
58
|
interface IScenario {
|
|
42
59
|
/**
|
|
@@ -113,11 +130,21 @@ export declare namespace IAutoBeTestScenarioApplication {
|
|
|
113
130
|
* authentication, resource creation, or data setup, that are relevant to
|
|
114
131
|
* the test. This list is not a strict execution order — if ordering is
|
|
115
132
|
* important, it must be described explicitly in the `purpose`.
|
|
133
|
+
*
|
|
134
|
+
* WARNING: Every endpoint referenced here MUST exist in the provided API
|
|
135
|
+
* operations. Do NOT reference endpoints that are not explicitly available,
|
|
136
|
+
* even if they seem logically necessary based on database schema or
|
|
137
|
+
* business logic.
|
|
116
138
|
*/
|
|
117
139
|
dependencies: IDependencies[];
|
|
118
140
|
}
|
|
119
141
|
interface IDependencies {
|
|
120
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Target API endpoint that this scenario depends on.
|
|
144
|
+
*
|
|
145
|
+
* This endpoint MUST exist in the available API operations list.
|
|
146
|
+
* Non-existent endpoints will cause test implementation failures.
|
|
147
|
+
*/
|
|
121
148
|
endpoint: AutoBeOpenApi.IEndpoint;
|
|
122
149
|
/**
|
|
123
150
|
* A concise explanation of why this API call is relevant or required for
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobe/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "AI backend server code generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@samchon/openapi": "^4.7.1",
|
|
26
26
|
"openai": "^5.12.2",
|
|
27
27
|
"tstl": "^3.0.0",
|
|
28
|
-
"typia": "^9.7.
|
|
28
|
+
"typia": "^9.7.2",
|
|
29
29
|
"uuid": "^11.1.0",
|
|
30
|
-
"@autobe/
|
|
31
|
-
"@autobe/
|
|
30
|
+
"@autobe/utils": "^0.21.0",
|
|
31
|
+
"@autobe/interface": "^0.21.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"ts-node": "^10.9.2",
|
|
41
41
|
"ts-patch": "^3.3.0",
|
|
42
42
|
"typescript": "~5.9.2",
|
|
43
|
-
"@autobe/
|
|
44
|
-
"@autobe/
|
|
43
|
+
"@autobe/filesystem": "^0.21.0",
|
|
44
|
+
"@autobe/compiler": "^0.21.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"ai",
|
package/src/AutoBeMockAgent.ts
CHANGED
|
@@ -175,6 +175,7 @@ const sleepMap: Record<AutoBeEvent.Type, number> = {
|
|
|
175
175
|
interfaceStart: 1_000,
|
|
176
176
|
interfaceGroups: 1_000,
|
|
177
177
|
interfaceEndpoints: 1_000,
|
|
178
|
+
interfaceEndpointsReview: 1_000,
|
|
178
179
|
interfaceOperations: 400,
|
|
179
180
|
interfaceOperationsReview: 400,
|
|
180
181
|
interfaceAuthorization: 400,
|