@autobe/agent 0.27.0 → 0.28.1
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 +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/index.mjs +18186 -7689
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +164 -86
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +656 -335
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +143 -74
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +165 -2
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +773 -403
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +749 -2
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1637 -9
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +252 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +258 -135
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +342 -226
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +633 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +785 -3
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +206 -3
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +107 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1676 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1637 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +397 -201
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1184 -599
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1202 -608
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +369 -185
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +405 -203
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +165 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +131 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +166 -2
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +257 -3
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +139 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/package.json +9 -9
- package/src/constants/AutoBeSystemPromptConstant.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +7 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +13 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +7 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +15 -1
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +17 -14
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +9 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +11 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +13 -9
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +7 -9
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +7 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +11 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +15 -1
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -1
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTestCorrect.ts +11 -1
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +18 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +11 -1
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +11 -1
- package/src/orchestrate/test/orchestrateTestWrite.ts +11 -1
|
@@ -276,7 +276,11 @@ function createController(props) {
|
|
|
276
276
|
}
|
|
277
277
|
return result;
|
|
278
278
|
};
|
|
279
|
-
const application = collection[props.model === "chatgpt"
|
|
279
|
+
const application = collection[props.model === "chatgpt"
|
|
280
|
+
? "chatgpt"
|
|
281
|
+
: props.model === "gemini"
|
|
282
|
+
? "gemini"
|
|
283
|
+
: "claude"](validate);
|
|
280
284
|
return {
|
|
281
285
|
protocol: "class",
|
|
282
286
|
name: "Test Scenario Reviewer",
|
|
@@ -336,10 +340,10 @@ const collection = {
|
|
|
336
340
|
additionalProperties: false,
|
|
337
341
|
$defs: {
|
|
338
342
|
"IAutoBeTestScenarioApplication.IScenarioGroup": {
|
|
339
|
-
description: "### Description of {@link endpoint} property:\n\n> Target API endpoint to test.\n> \n> This must be **unique** across all scenario groups. An endpoint is\n> identified by its `path` and `method` combination.\n> \n> Multiple test scenarios may exist for a single endpoint.",
|
|
340
343
|
type: "object",
|
|
341
344
|
properties: {
|
|
342
345
|
endpoint: {
|
|
346
|
+
description: "Target API endpoint to test.\n\nThis must be **unique** across all scenario groups. An endpoint is\nidentified by its `path` and `method` combination.\n\nMultiple test scenarios may exist for a single endpoint.",
|
|
343
347
|
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
344
348
|
},
|
|
345
349
|
scenarios: {
|
|
@@ -407,10 +411,10 @@ const collection = {
|
|
|
407
411
|
]
|
|
408
412
|
},
|
|
409
413
|
"IAutoBeTestScenarioApplication.IDependencies": {
|
|
410
|
-
description: "### Description of {@link endpoint} property:\n\n> Target API endpoint that this scenario depends on.\n> \n> This endpoint MUST exist in the available API operations list.\n> Non-existent endpoints will cause test implementation failures.",
|
|
411
414
|
type: "object",
|
|
412
415
|
properties: {
|
|
413
416
|
endpoint: {
|
|
417
|
+
description: "Target API endpoint that this scenario depends on.\n\nThis endpoint MUST exist in the available API operations list.\nNon-existent endpoints will cause test implementation failures.",
|
|
414
418
|
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
415
419
|
},
|
|
416
420
|
purpose: {
|
|
@@ -852,5 +856,281 @@ const collection = {
|
|
|
852
856
|
}), { equals: false }));
|
|
853
857
|
return application;
|
|
854
858
|
})(),
|
|
859
|
+
gemini: (validate) => (() => {
|
|
860
|
+
const application = {
|
|
861
|
+
model: "gemini",
|
|
862
|
+
options: {
|
|
863
|
+
reference: true,
|
|
864
|
+
separate: null
|
|
865
|
+
},
|
|
866
|
+
functions: [
|
|
867
|
+
{
|
|
868
|
+
name: "review",
|
|
869
|
+
parameters: {
|
|
870
|
+
description: "Current Type: {@link IAutoBeTestScenarioReviewApplication.IProps}",
|
|
871
|
+
type: "object",
|
|
872
|
+
properties: {
|
|
873
|
+
review: {
|
|
874
|
+
description: "Concise review summary focusing on critical findings and key\nimprovements.\n\nShould include:\n\n- Executive summary of overall quality\n- Critical issues requiring immediate fixes\n- Key improvement recommendations\n- Database schema compliance status\n- Modified scenarios identification by functionName",
|
|
875
|
+
type: "string"
|
|
876
|
+
},
|
|
877
|
+
plan: {
|
|
878
|
+
description: "Structured action plan with priority-based improvements.\n\nShould contain:\n\n- Critical fixes required immediately\n- High priority enhancements\n- Implementation guidance\n- Success criteria\n- Specific scenario action items by functionName",
|
|
879
|
+
type: "string"
|
|
880
|
+
},
|
|
881
|
+
pass: {
|
|
882
|
+
description: "If the scenario groups pass the review, Set to true.",
|
|
883
|
+
type: "boolean"
|
|
884
|
+
},
|
|
885
|
+
scenarioGroups: {
|
|
886
|
+
description: "The reviewed and improved scenario groups with all quality fixes applied.\n\nThis is the primary output containing:\n\n- All critical issues resolved\n- Authentication flows corrected\n- Database dependencies validated\n- Quality enhancements implemented\n- Only implementable scenarios retained",
|
|
887
|
+
type: "array",
|
|
888
|
+
items: {
|
|
889
|
+
$ref: "#/$defs/IAutoBeTestScenarioApplication.IScenarioGroup"
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
required: [
|
|
894
|
+
"review",
|
|
895
|
+
"plan",
|
|
896
|
+
"pass",
|
|
897
|
+
"scenarioGroups"
|
|
898
|
+
],
|
|
899
|
+
additionalProperties: false,
|
|
900
|
+
$defs: {
|
|
901
|
+
"IAutoBeTestScenarioApplication.IScenarioGroup": {
|
|
902
|
+
type: "object",
|
|
903
|
+
properties: {
|
|
904
|
+
endpoint: {
|
|
905
|
+
description: "Target API endpoint to test.\n\nThis must be **unique** across all scenario groups. An endpoint is\nidentified by its `path` and `method` combination.\n\nMultiple test scenarios may exist for a single endpoint.",
|
|
906
|
+
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
907
|
+
},
|
|
908
|
+
scenarios: {
|
|
909
|
+
description: "An array of test scenarios associated with the given endpoint.\n\nEach scenario represents a specific test case for the same `path` and\n`method`.\n\nIMPORTANT: Each scenario must be actually implementable. A scenario's\nimplementability is determined by the existence of ALL APIs (endpoints)\nrequired to test it. This includes not only the primary endpoint being\ntested, but also ALL dependency endpoints needed for setup,\nauthentication, and data preparation. If even one required dependency API\nis missing from the available operations, the scenario cannot be\nimplemented and should not be generated.\n\nExample: A \"test banned user login\" scenario requires both a login API\nAND a ban user API. If the ban API doesn't exist, this scenario is not\nimplementable regardless of database schema fields.",
|
|
910
|
+
type: "array",
|
|
911
|
+
items: {
|
|
912
|
+
$ref: "#/$defs/IAutoBeTestScenarioApplication.IScenario"
|
|
913
|
+
},
|
|
914
|
+
minItems: 1
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
required: [
|
|
918
|
+
"endpoint",
|
|
919
|
+
"scenarios"
|
|
920
|
+
]
|
|
921
|
+
},
|
|
922
|
+
"AutoBeOpenApi.IEndpoint": {
|
|
923
|
+
description: "API endpoint information.",
|
|
924
|
+
type: "object",
|
|
925
|
+
properties: {
|
|
926
|
+
path: {
|
|
927
|
+
description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
|
|
928
|
+
type: "string",
|
|
929
|
+
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
|
|
930
|
+
},
|
|
931
|
+
method: {
|
|
932
|
+
description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
|
|
933
|
+
type: "string",
|
|
934
|
+
"enum": [
|
|
935
|
+
"get",
|
|
936
|
+
"post",
|
|
937
|
+
"put",
|
|
938
|
+
"delete",
|
|
939
|
+
"patch"
|
|
940
|
+
]
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
required: [
|
|
944
|
+
"path",
|
|
945
|
+
"method"
|
|
946
|
+
]
|
|
947
|
+
},
|
|
948
|
+
"IAutoBeTestScenarioApplication.IScenario": {
|
|
949
|
+
description: "Represents a test scenario for a single API operation.\n\nThis interface defines a structured, user-centric test draft that includes\na descriptive function name, a detailed scenario draft, and logical\ndependencies on other endpoints required for context or setup.\n\nCRITICAL: All referenced endpoints MUST exist in the provided API\noperations. Do NOT create scenarios for non-existent APIs, even if database\nschema fields suggest their existence. Test scenarios must be implementable\nwith available APIs only.",
|
|
950
|
+
type: "object",
|
|
951
|
+
properties: {
|
|
952
|
+
draft: {
|
|
953
|
+
description: "A detailed natural language description of how this API endpoint should\nbe tested. This should include both successful and failure scenarios,\nbusiness rule validations, edge cases, and any sequence of steps\nnecessary to perform the test. A subsequent agent will use this draft to\ngenerate multiple concrete test cases.",
|
|
954
|
+
type: "string"
|
|
955
|
+
},
|
|
956
|
+
functionName: {
|
|
957
|
+
description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\nDO: Use snake_case naming convention.\n\n- Must start with `test_api_` prefix (mandatory requirement)\n- ALWAYS start with business feature, NOT action verbs\n- Business feature comes first, followed by scenario context\n- Embed action verbs within the scenario description, not at the beginning\n\n## Content Structure\n\nFunction names should follow this pattern:\n`test_api_[core_feature]_[specific_scenario]`\n\nWhere:\n\n- `core_feature`: The main business feature or entity being tested\n (customer, seller, cart, push_message, etc.)\n- `specific_scenario`: The specific operation or scenario context\n (join_verification_not_found, login_success,\n moderator_assignment_update, discountable_ticket_duplicated,\n csv_export, etc.)\n\n## Business Feature-Based Examples\n\n- `test_api_customer_join_verification_not_found` - Customer join\n verification when verification code not found\n- `test_api_seller_login` - Seller login operation\n- `test_api_cart_discountable_ticket_duplicated` - Cart discountable ticket\n with duplication scenario\n- `test_api_push_message_csv` - Push message functionality with CSV format\n- `test_api_product_review_update` - Product review update operation\n\n## Clarity Guidelines\n\n- Prioritize clarity over brevity\n- Avoid technical jargon or implementation terms\n- Use terminology that reflects user perspective\n- Ensure the name alone conveys the user's intent\n- Make it understandable to non-technical stakeholders\n- Keep consistent with user scenario description\n\n## Single Endpoint Alignment\n\nFunction names must reflect scenarios that:\n\n- Accomplish user goals through this single endpoint only\n- Don't imply dependency on other API operations\n- Represent complete user interactions",
|
|
958
|
+
type: "string"
|
|
959
|
+
},
|
|
960
|
+
dependencies: {
|
|
961
|
+
description: "A list of other API endpoints that this scenario logically depends on.\n\nThese dependencies represent context or prerequisite conditions, such as\nauthentication, resource creation, or data setup, that are relevant to\nthe test. This list is not a strict execution order \u2014 if ordering is\nimportant, it must be described explicitly in the `purpose`.\n\nWARNING: Every endpoint referenced here MUST exist in the provided API\noperations. Do NOT reference endpoints that are not explicitly available,\neven if they seem logically necessary based on database schema or\nbusiness logic.",
|
|
962
|
+
type: "array",
|
|
963
|
+
items: {
|
|
964
|
+
$ref: "#/$defs/IAutoBeTestScenarioApplication.IDependencies"
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
required: [
|
|
969
|
+
"draft",
|
|
970
|
+
"functionName",
|
|
971
|
+
"dependencies"
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
"IAutoBeTestScenarioApplication.IDependencies": {
|
|
975
|
+
type: "object",
|
|
976
|
+
properties: {
|
|
977
|
+
endpoint: {
|
|
978
|
+
description: "Target API endpoint that this scenario depends on.\n\nThis endpoint MUST exist in the available API operations list.\nNon-existent endpoints will cause test implementation failures.",
|
|
979
|
+
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
980
|
+
},
|
|
981
|
+
purpose: {
|
|
982
|
+
description: "A concise explanation of why this API call is relevant or required for\nthe main test scenario.\n\nThis should describe the contextual or setup role of the dependency, such\nas creating necessary data or establishing user authentication.\n\nExample: \"Creates a category so that a product can be linked to it during\ncreation.\"",
|
|
983
|
+
type: "string"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
required: [
|
|
987
|
+
"endpoint",
|
|
988
|
+
"purpose"
|
|
989
|
+
]
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && "boolean" === typeof input.pass && (Array.isArray(input.scenarioGroups) && input.scenarioGroups.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && (Array.isArray(input.scenarios) && (1 <= input.scenarios.length && input.scenarios.every(elem => "object" === typeof elem && null !== elem && _io3(elem)))); const _io2 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io3 = input => "string" === typeof input.draft && "string" === typeof input.functionName && (Array.isArray(input.dependencies) && input.dependencies.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && "string" === typeof input.purpose; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
994
|
+
path: _path + ".review",
|
|
995
|
+
expected: "string",
|
|
996
|
+
value: input.review
|
|
997
|
+
}), "string" === typeof input.plan || _report(_exceptionable, {
|
|
998
|
+
path: _path + ".plan",
|
|
999
|
+
expected: "string",
|
|
1000
|
+
value: input.plan
|
|
1001
|
+
}), "boolean" === typeof input.pass || _report(_exceptionable, {
|
|
1002
|
+
path: _path + ".pass",
|
|
1003
|
+
expected: "boolean",
|
|
1004
|
+
value: input.pass
|
|
1005
|
+
}), (Array.isArray(input.scenarioGroups) || _report(_exceptionable, {
|
|
1006
|
+
path: _path + ".scenarioGroups",
|
|
1007
|
+
expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
|
|
1008
|
+
value: input.scenarioGroups
|
|
1009
|
+
})) && input.scenarioGroups.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1010
|
+
path: _path + ".scenarioGroups[" + _index4 + "]",
|
|
1011
|
+
expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
|
|
1012
|
+
value: elem
|
|
1013
|
+
})) && _vo1(elem, _path + ".scenarioGroups[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1014
|
+
path: _path + ".scenarioGroups[" + _index4 + "]",
|
|
1015
|
+
expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
|
|
1016
|
+
value: elem
|
|
1017
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1018
|
+
path: _path + ".scenarioGroups",
|
|
1019
|
+
expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
|
|
1020
|
+
value: input.scenarioGroups
|
|
1021
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
|
|
1022
|
+
path: _path + ".endpoint",
|
|
1023
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
1024
|
+
value: input.endpoint
|
|
1025
|
+
})) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
|
|
1026
|
+
path: _path + ".endpoint",
|
|
1027
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
1028
|
+
value: input.endpoint
|
|
1029
|
+
}), (Array.isArray(input.scenarios) || _report(_exceptionable, {
|
|
1030
|
+
path: _path + ".scenarios",
|
|
1031
|
+
expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
|
|
1032
|
+
value: input.scenarios
|
|
1033
|
+
})) && ((1 <= input.scenarios.length || _report(_exceptionable, {
|
|
1034
|
+
path: _path + ".scenarios",
|
|
1035
|
+
expected: "Array<> & MinItems<1>",
|
|
1036
|
+
value: input.scenarios
|
|
1037
|
+
})) && input.scenarios.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1038
|
+
path: _path + ".scenarios[" + _index5 + "]",
|
|
1039
|
+
expected: "IAutoBeTestScenarioApplication.IScenario",
|
|
1040
|
+
value: elem
|
|
1041
|
+
})) && _vo3(elem, _path + ".scenarios[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1042
|
+
path: _path + ".scenarios[" + _index5 + "]",
|
|
1043
|
+
expected: "IAutoBeTestScenarioApplication.IScenario",
|
|
1044
|
+
value: elem
|
|
1045
|
+
})).every(flag => flag)) || _report(_exceptionable, {
|
|
1046
|
+
path: _path + ".scenarios",
|
|
1047
|
+
expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
|
|
1048
|
+
value: input.scenarios
|
|
1049
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
1050
|
+
path: _path + ".path",
|
|
1051
|
+
expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
|
|
1052
|
+
value: input.path
|
|
1053
|
+
})) || _report(_exceptionable, {
|
|
1054
|
+
path: _path + ".path",
|
|
1055
|
+
expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
|
|
1056
|
+
value: input.path
|
|
1057
|
+
}), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
|
|
1058
|
+
path: _path + ".method",
|
|
1059
|
+
expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
|
|
1060
|
+
value: input.method
|
|
1061
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.draft || _report(_exceptionable, {
|
|
1062
|
+
path: _path + ".draft",
|
|
1063
|
+
expected: "string",
|
|
1064
|
+
value: input.draft
|
|
1065
|
+
}), "string" === typeof input.functionName || _report(_exceptionable, {
|
|
1066
|
+
path: _path + ".functionName",
|
|
1067
|
+
expected: "string",
|
|
1068
|
+
value: input.functionName
|
|
1069
|
+
}), (Array.isArray(input.dependencies) || _report(_exceptionable, {
|
|
1070
|
+
path: _path + ".dependencies",
|
|
1071
|
+
expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
|
|
1072
|
+
value: input.dependencies
|
|
1073
|
+
})) && input.dependencies.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1074
|
+
path: _path + ".dependencies[" + _index6 + "]",
|
|
1075
|
+
expected: "IAutoBeTestScenarioApplication.IDependencies",
|
|
1076
|
+
value: elem
|
|
1077
|
+
})) && _vo4(elem, _path + ".dependencies[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1078
|
+
path: _path + ".dependencies[" + _index6 + "]",
|
|
1079
|
+
expected: "IAutoBeTestScenarioApplication.IDependencies",
|
|
1080
|
+
value: elem
|
|
1081
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1082
|
+
path: _path + ".dependencies",
|
|
1083
|
+
expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
|
|
1084
|
+
value: input.dependencies
|
|
1085
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
|
|
1086
|
+
path: _path + ".endpoint",
|
|
1087
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
1088
|
+
value: input.endpoint
|
|
1089
|
+
})) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
|
|
1090
|
+
path: _path + ".endpoint",
|
|
1091
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
1092
|
+
value: input.endpoint
|
|
1093
|
+
}), "string" === typeof input.purpose || _report(_exceptionable, {
|
|
1094
|
+
path: _path + ".purpose",
|
|
1095
|
+
expected: "string",
|
|
1096
|
+
value: input.purpose
|
|
1097
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
1098
|
+
if (false === __is(input)) {
|
|
1099
|
+
errors = [];
|
|
1100
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1101
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
1102
|
+
path: _path + "",
|
|
1103
|
+
expected: "IAutoBeTestScenarioReviewApplication.IProps",
|
|
1104
|
+
value: input
|
|
1105
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1106
|
+
path: _path + "",
|
|
1107
|
+
expected: "IAutoBeTestScenarioReviewApplication.IProps",
|
|
1108
|
+
value: input
|
|
1109
|
+
}))(input, "$input", true);
|
|
1110
|
+
const success = 0 === errors.length;
|
|
1111
|
+
return success ? {
|
|
1112
|
+
success,
|
|
1113
|
+
data: input
|
|
1114
|
+
} : {
|
|
1115
|
+
success,
|
|
1116
|
+
errors,
|
|
1117
|
+
data: input
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
return {
|
|
1121
|
+
success: true,
|
|
1122
|
+
data: input
|
|
1123
|
+
};
|
|
1124
|
+
}; })()
|
|
1125
|
+
}
|
|
1126
|
+
]
|
|
1127
|
+
};
|
|
1128
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
1129
|
+
validate: {
|
|
1130
|
+
review: validate,
|
|
1131
|
+
},
|
|
1132
|
+
}), { equals: false }));
|
|
1133
|
+
return application;
|
|
1134
|
+
})(),
|
|
855
1135
|
};
|
|
856
1136
|
//# sourceMappingURL=orchestrateTestScenarioReview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestScenarioReview.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestScenarioReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,sEAeC;;;AA3BD,yCAAgE;AAEhE,+BAA+C;AAC/C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,2GAAwG;AAIxG,SAAs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pE,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;YAAE,OAAO,MAAM,CAAC;QAE5C,kCAAkC;QAClC,MAAM,cAAc,GAClB,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEnD,MAAM,MAAM,GAAyB,EAAE,CAAC;QAExC,+DAA+D;QAC/D,MAAM,sBAAsB,GAC1B,KAAK,CAAC,cAAc,CAAC,MAAM,CAEzB,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE;YACvB,2EAA2E;YAC3E,MAAM,aAAa,GAAG,cAAc,CAAC,IAAI,CACvC,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,CAAC,MAAM;gBACnD,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC,QAAQ,CAAC,IAAI,CAClD,CAAC;YAEF,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,OAAO,CAAC,GAAG,GAAG,EAAE,aAAa,CAAC,CAAC;YACjC,CAAC;YAED,OAAO,CAAC,GAAG,GAAG,EAAE,aAAa,CAAC,CAAC;QACjC,CAAC,EAAE,EAAE,CAAC,CAAC;QAET,MAAM,CAAC,IAAI,CAAC,cAAc,GAAG,sBAAsB,CAAC;QAEpD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM;gBACN,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"orchestrateTestScenarioReview.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestScenarioReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;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EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACwC;YACpE,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACwC;YACpE,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -218,7 +218,11 @@ function createController(props) {
|
|
|
218
218
|
}
|
|
219
219
|
: result;
|
|
220
220
|
};
|
|
221
|
-
const application = collection[props.model === "chatgpt"
|
|
221
|
+
const application = collection[props.model === "chatgpt"
|
|
222
|
+
? "chatgpt"
|
|
223
|
+
: props.model === "gemini"
|
|
224
|
+
? "gemini"
|
|
225
|
+
: "claude"](validate);
|
|
222
226
|
return {
|
|
223
227
|
protocol: "class",
|
|
224
228
|
name: "Create Test Code",
|
|
@@ -243,7 +247,7 @@ const collection = {
|
|
|
243
247
|
{
|
|
244
248
|
name: "write",
|
|
245
249
|
parameters: {
|
|
246
|
-
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}
|
|
250
|
+
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
247
251
|
type: "object",
|
|
248
252
|
properties: {
|
|
249
253
|
scenario: {
|
|
@@ -259,6 +263,7 @@ const collection = {
|
|
|
259
263
|
type: "string"
|
|
260
264
|
},
|
|
261
265
|
revise: {
|
|
266
|
+
description: "Steps 4-5: Code review and final refinement process.\n\nContains the iterative improvement workflow that transforms the initial\ndraft into production-ready test code. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces the\npolished, production-ready test implementation.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
262
267
|
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
263
268
|
}
|
|
264
269
|
},
|
|
@@ -495,5 +500,137 @@ const collection = {
|
|
|
495
500
|
}), { equals: false }));
|
|
496
501
|
return application;
|
|
497
502
|
})(),
|
|
503
|
+
gemini: (validate) => (() => {
|
|
504
|
+
const application = {
|
|
505
|
+
model: "gemini",
|
|
506
|
+
options: {
|
|
507
|
+
reference: true,
|
|
508
|
+
separate: null
|
|
509
|
+
},
|
|
510
|
+
functions: [
|
|
511
|
+
{
|
|
512
|
+
name: "write",
|
|
513
|
+
parameters: {
|
|
514
|
+
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
515
|
+
type: "object",
|
|
516
|
+
properties: {
|
|
517
|
+
scenario: {
|
|
518
|
+
description: "Step 1: Strategic test planning and scenario analysis.\n\nAI analyzes the given test scenario and creates a comprehensive\nimplementation strategy. This planning phase is crucial for generating\nwell-structured, maintainable test code. The AI must define test\nmethodology, data preparation, execution flow, and validation logic\nbefore proceeding to code implementation.\n\nWorkflow: Input scenario \u2192 Strategic analysis \u2192 Detailed test plan",
|
|
519
|
+
type: "string"
|
|
520
|
+
},
|
|
521
|
+
domain: {
|
|
522
|
+
description: "Step 2: Functional domain classification for test organization.\n\nAI determines the appropriate domain category based on the scenario\nanalysis. This classification drives file structure, test categorization,\nand logical grouping. The domain must be a single, lowercase word in\nsnake_case format that represents the primary API resource.\n\nWorkflow: Scenario analysis \u2192 Domain identification \u2192 Test organization\nstructure",
|
|
523
|
+
type: "string"
|
|
524
|
+
},
|
|
525
|
+
draft: {
|
|
526
|
+
description: "Step 3: Initial TypeScript E2E test code implementation.\n\nAI generates the first working version of the test code based on the\nstrategic plan. This draft must be compilation-error-free and follow",
|
|
527
|
+
type: "string"
|
|
528
|
+
},
|
|
529
|
+
revise: {
|
|
530
|
+
description: "Steps 4-5: Code review and final refinement process.\n\nContains the iterative improvement workflow that transforms the initial\ndraft into production-ready test code. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces the\npolished, production-ready test implementation.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
531
|
+
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
required: [
|
|
535
|
+
"scenario",
|
|
536
|
+
"domain",
|
|
537
|
+
"draft",
|
|
538
|
+
"revise"
|
|
539
|
+
],
|
|
540
|
+
additionalProperties: false,
|
|
541
|
+
$defs: {
|
|
542
|
+
"IAutoBeTestWriteApplication.IReviseProps": {
|
|
543
|
+
type: "object",
|
|
544
|
+
properties: {
|
|
545
|
+
review: {
|
|
546
|
+
description: "Step 4: Code review and quality assessment.\n\n**\uD83D\uDEA8 TWO TYPES OF REVISIONS: FIX AND DELETE \uD83D\uDEA8**\n\nAI performs a thorough review of the draft implementation for:\n\n**1. FIX - Improve existing code:**\n\n**Compilation & Syntax:**\n\n- TypeScript compilation errors and type mismatches\n- Syntax errors and missing semicolons/brackets\n- Correct function signatures and parameter types\n\n**Framework Compliance:**\n\n-",
|
|
547
|
+
type: "string"
|
|
548
|
+
},
|
|
549
|
+
final: {
|
|
550
|
+
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. When the draft code is\nalready perfect with no issues found during review, this value can be\nnull, indicating no revisions were necessary.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n- If review finds NO issues requiring changes, set to null\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards. A null value indicates the draft code already\nmeets all requirements without modification.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation (or null if no changes needed)\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite when provided, otherwise the draft is used as-is.",
|
|
551
|
+
anyOf: [
|
|
552
|
+
{
|
|
553
|
+
type: "null"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
type: "string"
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
required: [
|
|
562
|
+
"review",
|
|
563
|
+
"final"
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
description: "Main entry point for AI Function Call - generates complete E2E test code.\n\nThe AI executes this function to perform the entire test generation\nworkflow: scenario analysis \u2192 draft implementation \u2192 code review \u2192 final\ncode production. This structured approach ensures high-quality,\ncompilation-error-free test code.",
|
|
569
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "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.scenario || _report(_exceptionable, {
|
|
570
|
+
path: _path + ".scenario",
|
|
571
|
+
expected: "string",
|
|
572
|
+
value: input.scenario
|
|
573
|
+
}), "string" === typeof input.domain || _report(_exceptionable, {
|
|
574
|
+
path: _path + ".domain",
|
|
575
|
+
expected: "string",
|
|
576
|
+
value: input.domain
|
|
577
|
+
}), "string" === typeof input.draft || _report(_exceptionable, {
|
|
578
|
+
path: _path + ".draft",
|
|
579
|
+
expected: "string",
|
|
580
|
+
value: input.draft
|
|
581
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
582
|
+
path: _path + ".revise",
|
|
583
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
584
|
+
value: input.revise
|
|
585
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
586
|
+
path: _path + ".revise",
|
|
587
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
588
|
+
value: input.revise
|
|
589
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
590
|
+
path: _path + ".review",
|
|
591
|
+
expected: "string",
|
|
592
|
+
value: input.review
|
|
593
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
594
|
+
path: _path + ".final",
|
|
595
|
+
expected: "(null | string)",
|
|
596
|
+
value: input.final
|
|
597
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
598
|
+
if (false === __is(input)) {
|
|
599
|
+
errors = [];
|
|
600
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
601
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
602
|
+
path: _path + "",
|
|
603
|
+
expected: "IAutoBeTestWriteApplication.IProps",
|
|
604
|
+
value: input
|
|
605
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
606
|
+
path: _path + "",
|
|
607
|
+
expected: "IAutoBeTestWriteApplication.IProps",
|
|
608
|
+
value: input
|
|
609
|
+
}))(input, "$input", true);
|
|
610
|
+
const success = 0 === errors.length;
|
|
611
|
+
return success ? {
|
|
612
|
+
success,
|
|
613
|
+
data: input
|
|
614
|
+
} : {
|
|
615
|
+
success,
|
|
616
|
+
errors,
|
|
617
|
+
data: input
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
return {
|
|
621
|
+
success: true,
|
|
622
|
+
data: input
|
|
623
|
+
};
|
|
624
|
+
}; })()
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
};
|
|
628
|
+
__typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
|
|
629
|
+
validate: {
|
|
630
|
+
write: validate,
|
|
631
|
+
},
|
|
632
|
+
}), { equals: false }));
|
|
633
|
+
return application;
|
|
634
|
+
})(),
|
|
498
635
|
};
|
|
499
636
|
//# sourceMappingURL=orchestrateTestWrite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,oDAwCC;;;AAvDD,kDAA0B;AAC1B,uEAAoE;AACpE,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,qEAAkE;AAClE,iEAA8D;AAC9D,iFAA8E;AAC9E,yFAAsF;AAKtF,SAAsB,oBAAoB,CACxC,GAAyB,EACzB,KAGC;;QAED,MAAM,QAAQ,GAA4B;YACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM;YAC7B,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,MAAM,GAAyC,MAAM,IAAA,uCAAkB;QAC3E;;;;WAIG;QACH,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,Q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C+B;YAC3D,QAAQ,EAAE;gBACR,KAAK,EAAE,QAAQ;aAChB;SACF;;QAAC;CACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobe/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "AI backend server code generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agentica/core": "^0.
|
|
23
|
+
"@agentica/core": "^0.34.1",
|
|
24
24
|
"@prisma/internals": "^6.16.2",
|
|
25
|
-
"@samchon/openapi": "^
|
|
25
|
+
"@samchon/openapi": "^5.0.1",
|
|
26
26
|
"openai": "^6.7.0",
|
|
27
27
|
"tstl": "^3.0.0",
|
|
28
|
-
"typia": "^
|
|
28
|
+
"typia": "^10.0.2",
|
|
29
29
|
"uuid": "^11.1.0",
|
|
30
|
-
"@autobe/interface": "^0.
|
|
31
|
-
"@autobe/utils": "^0.
|
|
30
|
+
"@autobe/interface": "^0.28.1",
|
|
31
|
+
"@autobe/utils": "^0.28.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"rollup": "^4.40.1",
|
|
40
40
|
"ts-node": "^10.9.2",
|
|
41
41
|
"ts-patch": "^3.3.0",
|
|
42
|
-
"typescript": "~5.9.
|
|
43
|
-
"@autobe/filesystem": "^0.
|
|
44
|
-
"@autobe/compiler": "^0.
|
|
42
|
+
"typescript": "~5.9.3",
|
|
43
|
+
"@autobe/filesystem": "^0.28.1",
|
|
44
|
+
"@autobe/compiler": "^0.28.1"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"ai",
|