@mablhq/mabl-cli 2.65.3 → 2.67.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/api/mablApiClient.js +8 -0
- package/browserLauncher/index.js +1 -1
- package/cli.js +1 -0
- package/commands/mcp/mcp.js +5 -0
- package/commands/mcp/mcp_cmds/start.js +78 -0
- package/commands/mcp/mcp_cmds/tools/analyzeFailure.js +30 -0
- package/commands/mcp/mcp_cmds/tools/getEnvironments.js +38 -0
- package/commands/mcp/mcp_cmds/tools/getRecentFailures.js +22 -0
- package/commands/mcp/mcp_cmds/tools/getResults.js +42 -0
- package/commands/mcp/mcp_cmds/tools/getTests.js +41 -0
- package/commands/mcp/mcp_cmds/tools/index.js +19 -0
- package/commands/mcp/mcp_cmds/tools/mcpMablTool.js +6 -0
- package/commands/mcp/mcp_cmds/tools/runTest.js +54 -0
- package/commands/tests/tests_cmds/run.js +6 -4
- package/execution/index.js +1 -1
- package/package.json +5 -2
- package/providers/logging/loggingProvider.js +20 -13
package/api/mablApiClient.js
CHANGED
|
@@ -783,6 +783,14 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
|
783
783
|
requestBody.actions = actions;
|
|
784
784
|
return requestBody;
|
|
785
785
|
}
|
|
786
|
+
async getRecentTestRunsForTest(testId) {
|
|
787
|
+
try {
|
|
788
|
+
return await this.makeGetRequest(`${this.baseApiUrl}/journeyRuns/journey/${testId}`);
|
|
789
|
+
}
|
|
790
|
+
catch (error) {
|
|
791
|
+
throw toApiError(`Failed to retrieve test runs for test`, error);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
786
794
|
async getTestRunsForPlan(planRunId) {
|
|
787
795
|
try {
|
|
788
796
|
return this.makeGetRequest(`${this.baseApiUrl}/journeyRuns/planRun/${planRunId}`);
|