@skyramp/mcp 0.0.13 → 0.0.14
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.
|
@@ -56,7 +56,7 @@ For detailed documentation visit: https://www.skyramp.dev/docs/quickstart`,
|
|
|
56
56
|
},
|
|
57
57
|
}, async (params) => {
|
|
58
58
|
var docker = new Docker();
|
|
59
|
-
var image = "public.ecr.aws/skyramp/rampup/runner:mcp-v0.0.
|
|
59
|
+
var image = "public.ecr.aws/skyramp/rampup/runner:mcp-v0.0.4";
|
|
60
60
|
// Use path.basename for safer filename extraction
|
|
61
61
|
const filename = path.basename(params.testFile);
|
|
62
62
|
if (!filename) {
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
export function getModularizationPrompt() {
|
|
2
2
|
return `
|
|
3
3
|
**IMPORTANT: Now please modularize the code by**
|
|
4
|
-
|
|
5
|
-
1. Group related lines logically (e.g., login steps together) to improve readability and parameterize the test function(s) with meaningful parameters to make it more flexible.
|
|
6
|
-
2. Parameterize the test function(s) with meaningful parameters to make it more flexible. Preserve the original order of code lines within each function
|
|
7
|
-
3. Do not change or remove any existing lines of code, variable names, function names, or function structures.
|
|
8
|
-
4. Only extract reusable logical sections into helper functions or parameterized structures where applicable.
|
|
9
|
-
5. SEARCH REPOSITORY FOR CODE THAT CAN BE REUSED AND USE IT. WITHOUT BREAKING NEW OR EXISTING TESTS/FUNCTIONS/CODE.
|
|
10
|
-
6. Do not create any new test cases or a new modular file but only helper functions with modularization done in the same file.
|
|
11
|
-
7. Make sure the logic is same and the test works as expected.
|
|
12
|
-
8. Do not add any new logic or classes or any other files.
|
|
4
|
+
Please modularize and parameterize the test function(s) in the following code, modularize each functionality done by user into clear separate logical groups to make it more readable, and parameterize the modularized function(s) with necessary meaningful parameters to make it more flexible, making sure to keep the order of code lines, existing variable names, existing function names, existing function structures as same, without altering or removing any existing code lines. Keep the skyramp command comments in the beginning of the code. Respond with the complete, modularized code only. DO NOT ADD DEPENDENCY INSTRUCTIONS IN THE CODE.
|
|
13
5
|
|
|
14
6
|
Please refactor the code with these modularization principles. Respond with the complete, modularized code only.
|
|
7
|
+
|
|
8
|
+
|
|
15
9
|
`;
|
|
16
10
|
}
|