@mablhq/mabl-cli 2.70.35 → 2.71.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.
@@ -671,7 +671,7 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
671
671
  }
672
672
  }
673
673
  async evaluateAiAssertion(workspaceId, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables, retryConfig) {
674
- const requestUrl = `${this.baseApiUrl}/analysis/${workspaceId}/assertion/evaluate`;
674
+ const requestUrl = `${this.baseApiUrl}/agent/assertion?workspaceId=${workspaceId}`;
675
675
  return this.evaluateAiAssertionInternal(requestUrl, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables, retryConfig);
676
676
  }
677
677
  async evaluateAiAssertionInternal(requestUrl, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables, retryConfig = {
@@ -1172,9 +1172,7 @@ function toApiError(summary, cause) {
1172
1172
  const errorResponse = cause.response;
1173
1173
  const code = errorResponse?.status;
1174
1174
  const mablError = errorResponse?.data;
1175
- const message = `${summary}: ${mablError
1176
- ? `${mablError.code}: ${mablError.message} (${mablError.id})`
1177
- : cause.toString()}`;
1175
+ const message = `${summary}: ${mablError?.message ?? cause.toString()}`;
1178
1176
  return new ApiError_1.ApiError(message, code, cause);
1179
1177
  }
1180
1178
  return new ApiError_1.ApiError(summary, undefined, cause);