@blazingagents/sdk 0.50.0 → 0.51.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/dist/errors.js CHANGED
@@ -31,7 +31,7 @@ export class BlazingAgentsError extends Error {
31
31
  * @param options - Configuration for this operation.
32
32
  */
33
33
  constructor({ code, details, headers, message, param, requestId, responseBody, responseBodyTruncated, status, }, options) {
34
- super(`[${code}] ${message}`, options);
34
+ super(message, options);
35
35
  this.name = BLAZING_AGENTS_ERROR_NAME;
36
36
  this.code = code;
37
37
  this.details = details;
package/dist/relay.js CHANGED
@@ -149,7 +149,7 @@ function safeErrorResponse(error) {
149
149
  if (requestId) {
150
150
  headers.set("x-request-id", requestId);
151
151
  }
152
- return errorResponse(status, error.code, error.message.slice(`[${error.code}] `.length), headers);
152
+ return errorResponse(status, error.code, error.message, headers);
153
153
  }
154
154
  return errorResponse(500, "internal_error", "Request failed.");
155
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazingagents/sdk",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "TypeScript SDK for the Blazing Agents API",
5
5
  "homepage": "https://docs.blazingagents.com",
6
6
  "bugs": {