@autobe/agent 0.25.5 → 0.25.6
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/constants/AutoBeSystemPromptConstant.d.ts +12 -13
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeTokenUsage.d.ts +2 -2
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/context/{IAutoBeApplication.d.ts → IAutoBeFacadeApplication.d.ts} +15 -83
- package/lib/context/{IAutoBeApplicationProps.js → IAutoBeFacadeApplication.js} +1 -1
- package/lib/context/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/context/{IAutoBeApplicationProps.d.ts → IAutoBeFacadeApplicationProps.d.ts} +1 -1
- package/lib/context/{IAutoBeApplication.js → IAutoBeFacadeApplicationProps.js} +1 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/context/{IAutoBeApplicationResult.d.ts → IAutoBeFacadeApplicationResult.d.ts} +1 -1
- package/lib/context/{IAutoBeApplicationResult.js → IAutoBeFacadeApplicationResult.js} +1 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/factory/createAgenticaHistory.js +3 -1
- package/lib/factory/createAgenticaHistory.js.map +1 -1
- package/lib/factory/createAutoBeApplication.js +38 -76
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/factory/createAutoBeContext.js +10 -11
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +167 -246
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +0 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +3 -18
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +1 -13
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +1 -2
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -4
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +0 -4
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +10 -7
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/{transformInterfaceCommonPrerequisiteHistories.js → transformInterfaceCommonHistories.js} +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +12 -9
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +10 -7
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +13 -10
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +10 -7
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +10 -7
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +10 -5
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +9 -6
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +8 -5
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +8 -5
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +8 -5
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/package.json +6 -6
- package/src/constants/AutoBeSystemPromptConstant.ts +12 -13
- package/src/context/AutoBeTokenUsage.ts +2 -2
- package/src/context/{IAutoBeApplication.ts → IAutoBeFacadeApplication.ts} +15 -83
- package/src/context/{IAutoBeApplicationProps.ts → IAutoBeFacadeApplicationProps.ts} +1 -1
- package/src/context/{IAutoBeApplicationResult.ts → IAutoBeFacadeApplicationResult.ts} +1 -1
- package/src/factory/createAgenticaHistory.ts +5 -4
- package/src/factory/createAutoBeApplication.ts +6 -6
- package/src/factory/createAutoBeContext.ts +2 -3
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +0 -1
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +0 -16
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +0 -13
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +71 -74
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +1 -2
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +0 -1
- package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +0 -4
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -6
- package/src/orchestrate/interface/histories/{transformInterfaceCommonPrerequisiteHistories.ts → transformInterfaceCommonHistories.ts} +1 -1
- package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +9 -6
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +9 -6
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +11 -10
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +9 -6
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +9 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +2 -2
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -4
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +8 -5
- package/src/orchestrate/prisma/orchestratePrisma.ts +2 -2
- package/src/orchestrate/realize/orchestrateRealize.ts +2 -2
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +8 -5
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +8 -5
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +8 -5
- package/src/orchestrate/test/orchestrateTest.ts +2 -2
- package/lib/context/IAutoBeApplication.js.map +0 -1
- package/lib/context/IAutoBeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeApplicationResult.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map +0 -1
|
@@ -5,7 +5,7 @@ import { v7 } from "uuid";
|
|
|
5
5
|
import { AutoBeSystemPromptConstant } from "../../../constants/AutoBeSystemPromptConstant";
|
|
6
6
|
import { AutoBeState } from "../../../context/AutoBeState";
|
|
7
7
|
import { transformInterfaceAssetHistories } from "./transformInterfaceAssetHistories";
|
|
8
|
-
import {
|
|
8
|
+
import { transformInterfaceCommonHistories } from "./transformInterfaceCommonHistories";
|
|
9
9
|
|
|
10
10
|
export const transformInterfaceGroupHistories = (props: {
|
|
11
11
|
state: AutoBeState;
|
|
@@ -13,9 +13,7 @@ export const transformInterfaceGroupHistories = (props: {
|
|
|
13
13
|
}): Array<
|
|
14
14
|
IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage
|
|
15
15
|
> => {
|
|
16
|
-
const prerequisite =
|
|
17
|
-
props.state,
|
|
18
|
-
);
|
|
16
|
+
const prerequisite = transformInterfaceCommonHistories(props.state);
|
|
19
17
|
if (prerequisite !== null) return prerequisite;
|
|
20
18
|
|
|
21
19
|
return [
|
|
@@ -39,15 +37,18 @@ export const transformInterfaceGroupHistories = (props: {
|
|
|
39
37
|
text: StringUtil.trim`
|
|
40
38
|
## API Design Instructions
|
|
41
39
|
|
|
42
|
-
The following API-specific instructions were extracted
|
|
43
|
-
the user's
|
|
40
|
+
The following API-specific instructions were extracted from
|
|
41
|
+
the user's requirements. These focus on API interface design aspects
|
|
44
42
|
such as endpoint patterns, request/response formats, DTO schemas,
|
|
45
43
|
and operation specifications.
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
Follow these instructions when organizing API endpoints.
|
|
46
|
+
Carefully distinguish between:
|
|
47
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
48
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
49
|
+
|
|
50
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
51
|
+
follow them precisely even if you believe you have better alternatives.
|
|
51
52
|
|
|
52
53
|
${props.instruction}
|
|
53
54
|
`,
|
|
@@ -47,15 +47,18 @@ export const transformInterfaceOperationHistories = (props: {
|
|
|
47
47
|
text: StringUtil.trim`
|
|
48
48
|
## API Design Instructions
|
|
49
49
|
|
|
50
|
-
The following API-specific instructions were extracted
|
|
51
|
-
the user's
|
|
50
|
+
The following API-specific instructions were extracted from
|
|
51
|
+
the user's requirements. These focus on API interface design aspects
|
|
52
52
|
such as endpoint patterns, request/response formats, DTO schemas,
|
|
53
53
|
and operation specifications.
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
Follow these instructions when designing operation specifications.
|
|
56
|
+
Carefully distinguish between:
|
|
57
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
58
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
59
|
+
|
|
60
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
61
|
+
follow them precisely even if you believe you have better alternatives.
|
|
59
62
|
|
|
60
63
|
${props.instruction}
|
|
61
64
|
|
|
@@ -28,15 +28,18 @@ export const transformInterfaceSchemaHistories = (props: {
|
|
|
28
28
|
text: StringUtil.trim`
|
|
29
29
|
## API Design Instructions
|
|
30
30
|
|
|
31
|
-
The following API-specific instructions were extracted
|
|
32
|
-
the user's
|
|
31
|
+
The following API-specific instructions were extracted from
|
|
32
|
+
the user's requirements. These focus on API interface design aspects
|
|
33
33
|
such as endpoint patterns, request/response formats, DTO schemas,
|
|
34
34
|
and operation specifications.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
Follow these instructions when creating JSON schema components.
|
|
37
|
+
Carefully distinguish between:
|
|
38
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
39
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
40
|
+
|
|
41
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
42
|
+
follow them precisely even if you believe you have better alternatives.
|
|
40
43
|
|
|
41
44
|
${props.instruction}
|
|
42
45
|
|
|
@@ -17,7 +17,7 @@ import { HashMap, Pair } from "tstl";
|
|
|
17
17
|
import { v7 } from "uuid";
|
|
18
18
|
|
|
19
19
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
20
|
-
import {
|
|
20
|
+
import { IAutoBeFacadeApplicationProps } from "../../context/IAutoBeFacadeApplicationProps";
|
|
21
21
|
import { predicateStateMessage } from "../../utils/predicateStateMessage";
|
|
22
22
|
import { orchestrateInterfaceAuthorizations } from "./orchestrateInterfaceAuthorizations";
|
|
23
23
|
import { orchestrateInterfaceComplement } from "./orchestrateInterfaceComplement";
|
|
@@ -32,7 +32,7 @@ import { JsonSchemaFactory } from "./utils/JsonSchemaFactory";
|
|
|
32
32
|
export const orchestrateInterface =
|
|
33
33
|
<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>) =>
|
|
34
34
|
async (
|
|
35
|
-
props:
|
|
35
|
+
props: IAutoBeFacadeApplicationProps,
|
|
36
36
|
): Promise<AutoBeAssistantMessageHistory | AutoBeInterfaceHistory> => {
|
|
37
37
|
// PREDICATION
|
|
38
38
|
const start: Date = new Date();
|
|
@@ -85,12 +85,17 @@ export const transformPrismaComponentsHistories = (
|
|
|
85
85
|
|
|
86
86
|
## Database Design Instructions
|
|
87
87
|
|
|
88
|
-
The following database-specific instructions were extracted
|
|
89
|
-
the user's
|
|
88
|
+
The following database-specific instructions were extracted from
|
|
89
|
+
the user's requirements. These focus on database schema design aspects
|
|
90
90
|
such as table structure, relationships, constraints, and indexing strategies.
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
Follow these instructions when designing namespace components and DB table names.
|
|
93
|
+
Carefully distinguish between:
|
|
94
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
95
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
96
|
+
|
|
97
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
98
|
+
follow them precisely even if you believe you have better alternatives.
|
|
94
99
|
|
|
95
100
|
${props.instruction}
|
|
96
101
|
`,
|
|
@@ -39,13 +39,16 @@ export const transformPrismaSchemaHistories = (props: {
|
|
|
39
39
|
text: StringUtil.trim`
|
|
40
40
|
## Database Design Instructions
|
|
41
41
|
|
|
42
|
-
The following database-specific instructions were extracted
|
|
43
|
-
the user's
|
|
42
|
+
The following database-specific instructions were extracted from
|
|
43
|
+
the user's requirements. These focus on database schema design aspects
|
|
44
44
|
such as table structure, relationships, constraints, and indexing strategies.
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
Follow these instructions when designing the DB schema. Carefully distinguish between:
|
|
47
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
48
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
49
|
+
|
|
50
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
51
|
+
follow them precisely even if you believe you have better alternatives.
|
|
49
52
|
|
|
50
53
|
${props.instruction}
|
|
51
54
|
|
|
@@ -13,7 +13,7 @@ import { ILlmSchema } from "@samchon/openapi";
|
|
|
13
13
|
import { v7 } from "uuid";
|
|
14
14
|
|
|
15
15
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
16
|
-
import {
|
|
16
|
+
import { IAutoBeFacadeApplicationProps } from "../../context/IAutoBeFacadeApplicationProps";
|
|
17
17
|
import { predicateStateMessage } from "../../utils/predicateStateMessage";
|
|
18
18
|
import { orchestratePrismaComponents } from "./orchestratePrismaComponent";
|
|
19
19
|
import { orchestratePrismaCorrect } from "./orchestratePrismaCorrect";
|
|
@@ -22,7 +22,7 @@ import { orchestratePrismaSchemas } from "./orchestratePrismaSchemas";
|
|
|
22
22
|
|
|
23
23
|
export const orchestratePrisma = async <Model extends ILlmSchema.Model>(
|
|
24
24
|
ctx: AutoBeContext<Model>,
|
|
25
|
-
props:
|
|
25
|
+
props: IAutoBeFacadeApplicationProps,
|
|
26
26
|
): Promise<AutoBePrismaHistory | AutoBeAssistantMessageHistory> => {
|
|
27
27
|
// PREDICATION
|
|
28
28
|
const start: Date = new Date();
|
|
@@ -13,7 +13,7 @@ import { ILlmSchema } from "@samchon/openapi";
|
|
|
13
13
|
import { v7 } from "uuid";
|
|
14
14
|
|
|
15
15
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
16
|
-
import {
|
|
16
|
+
import { IAutoBeFacadeApplicationProps } from "../../context/IAutoBeFacadeApplicationProps";
|
|
17
17
|
import { executeCachedBatch } from "../../utils/executeCachedBatch";
|
|
18
18
|
import { predicateStateMessage } from "../../utils/predicateStateMessage";
|
|
19
19
|
import { compileRealizeFiles } from "./internal/compileRealizeFiles";
|
|
@@ -27,7 +27,7 @@ import { generateRealizeScenario } from "./utils/generateRealizeScenario";
|
|
|
27
27
|
export const orchestrateRealize =
|
|
28
28
|
<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>) =>
|
|
29
29
|
async (
|
|
30
|
-
props:
|
|
30
|
+
props: IAutoBeFacadeApplicationProps,
|
|
31
31
|
): Promise<AutoBeAssistantMessageHistory | AutoBeRealizeHistory> => {
|
|
32
32
|
// PREDICATION
|
|
33
33
|
const document: AutoBeOpenApi.IDocument | undefined =
|
|
@@ -53,16 +53,19 @@ export const transformTestScenarioHistories = (props: {
|
|
|
53
53
|
text: StringUtil.trim`
|
|
54
54
|
## Instructions
|
|
55
55
|
|
|
56
|
-
The following e2e-test-specific instructions were extracted
|
|
56
|
+
The following e2e-test-specific instructions were extracted from
|
|
57
57
|
the user's requirements and conversations. These instructions focus
|
|
58
58
|
exclusively on test-related aspects such as test coverage priorities,
|
|
59
59
|
specific edge cases to validate, business logic verification strategies,
|
|
60
60
|
and critical user workflows that must be tested.
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
Follow these instructions when generating test scenarios.
|
|
63
|
+
Carefully distinguish between:
|
|
64
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
65
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
66
|
+
|
|
67
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
68
|
+
follow them precisely even if you believe you have better alternatives.
|
|
66
69
|
|
|
67
70
|
${props.instruction}
|
|
68
71
|
|
|
@@ -43,16 +43,19 @@ export function transformTestScenarioReviewHistories(props: {
|
|
|
43
43
|
text: StringUtil.trim`
|
|
44
44
|
## Instructions
|
|
45
45
|
|
|
46
|
-
The following e2e-test-specific instructions were extracted
|
|
46
|
+
The following e2e-test-specific instructions were extracted from
|
|
47
47
|
the user's requirements and conversations. These instructions focus
|
|
48
48
|
exclusively on test-related aspects such as test coverage priorities,
|
|
49
49
|
specific edge cases to validate, business logic verification strategies,
|
|
50
50
|
and critical user workflows that must be tested.
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Follow these instructions when reviewing test scenarios.
|
|
53
|
+
Carefully distinguish between:
|
|
54
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
55
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
56
|
+
|
|
57
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
58
|
+
follow them precisely even if you believe you have better alternatives.
|
|
56
59
|
|
|
57
60
|
${props.instruction}
|
|
58
61
|
|
|
@@ -48,16 +48,19 @@ export async function transformTestWriteHistories<
|
|
|
48
48
|
|
|
49
49
|
## Instructions
|
|
50
50
|
|
|
51
|
-
The following e2e-test-specific instructions were extracted
|
|
51
|
+
The following e2e-test-specific instructions were extracted from
|
|
52
52
|
the user's requirements and conversations. These instructions focus
|
|
53
53
|
exclusively on test-related aspects such as test data generation strategies,
|
|
54
54
|
assertion patterns, error handling approaches, and specific validation logic
|
|
55
55
|
that should be implemented in the test code.
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
Follow these instructions when implementing the e2e test function.
|
|
58
|
+
Carefully distinguish between:
|
|
59
|
+
- Suggestions or recommendations (consider these as guidance)
|
|
60
|
+
- Direct specifications or explicit commands (these must be followed exactly)
|
|
61
|
+
|
|
62
|
+
When instructions contain direct specifications or explicit design decisions,
|
|
63
|
+
follow them precisely even if you believe you have better alternatives.
|
|
61
64
|
|
|
62
65
|
${props.instruction}
|
|
63
66
|
|
|
@@ -11,7 +11,7 @@ import { ILlmSchema } from "@samchon/openapi";
|
|
|
11
11
|
import { v7 } from "uuid";
|
|
12
12
|
|
|
13
13
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
14
|
-
import {
|
|
14
|
+
import { IAutoBeFacadeApplicationProps } from "../../context/IAutoBeFacadeApplicationProps";
|
|
15
15
|
import { predicateStateMessage } from "../../utils/predicateStateMessage";
|
|
16
16
|
import { orchestrateTestCorrect } from "./orchestrateTestCorrect";
|
|
17
17
|
import { orchestrateTestScenario } from "./orchestrateTestScenario";
|
|
@@ -21,7 +21,7 @@ import { IAutoBeTestWriteResult } from "./structures/IAutoBeTestWriteResult";
|
|
|
21
21
|
export const orchestrateTest =
|
|
22
22
|
<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>) =>
|
|
23
23
|
async (
|
|
24
|
-
props:
|
|
24
|
+
props: IAutoBeFacadeApplicationProps,
|
|
25
25
|
): Promise<AutoBeAssistantMessageHistory | AutoBeTestHistory> => {
|
|
26
26
|
// PREDICATION
|
|
27
27
|
const start: Date = new Date();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAutoBeApplication.js","sourceRoot":"","sources":["../../src/context/IAutoBeApplication.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAutoBeApplicationProps.js","sourceRoot":"","sources":["../../src/context/IAutoBeApplicationProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAutoBeApplicationResult.js","sourceRoot":"","sources":["../../src/context/IAutoBeApplicationResult.ts"],"names":[],"mappings":""}
|
package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
-
import { AutoBeState } from "../../../context/AutoBeState";
|
|
3
|
-
export declare const transformInterfaceCommonPrerequisiteHistories: (state: AutoBeState) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage> | null;
|
package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transformInterfaceCommonPrerequisiteHistories.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAInB,MAAM,6CAA6C,GAAG,CAC3D,KAAkB,EAGX,EAAE;IACT,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,4CAA4C;oBAC5C,mCAAmC;oBACnC,8CAA8C;iBAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI;QAC5B,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,mDAAmD;oBACnD,mCAAmC;oBACnC,qDAAqD;iBACtD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,IAAI;QAC/C,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,kDAAkD;oBAClD,sCAAsC;oBACtC,mCAAmC;oBACnC,wDAAwD;iBACzD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC/C,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,kDAAkD;oBAClD,sCAAsC;oBACtC,mCAAmC;oBACnC,wDAAwD;iBACzD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;IACJ,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA5DW,QAAA,6CAA6C,iDA4DxD"}
|