tensorlake 0.5.135 → 0.5.136

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.
@@ -46,7 +46,7 @@ var init_defaults = __esm({
46
46
  "src/defaults.ts"() {
47
47
  "use strict";
48
48
  init_esm_shims();
49
- SDK_VERSION = "0.5.135";
49
+ SDK_VERSION = "0.5.136";
50
50
  API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
51
51
  API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
52
52
  NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
@@ -91,9 +91,13 @@ var init_errors = __esm({
91
91
  }
92
92
  };
93
93
  SandboxError = class extends SandboxException {
94
- constructor(message) {
94
+ reason;
95
+ sandboxId;
96
+ constructor(message, options) {
95
97
  super(message);
96
98
  this.name = "SandboxError";
99
+ if (options?.reason !== void 0) this.reason = options.reason;
100
+ if (options?.sandboxId !== void 0) this.sandboxId = options.sandboxId;
97
101
  }
98
102
  };
99
103
  SandboxConnectionError = class extends SandboxError {
@@ -104,11 +108,9 @@ var init_errors = __esm({
104
108
  }
105
109
  };
106
110
  SandboxNotFoundError = class extends SandboxError {
107
- sandboxId;
108
111
  constructor(sandboxId) {
109
- super(`Sandbox not found: ${sandboxId}`);
112
+ super(`Sandbox not found: ${sandboxId}`, { sandboxId });
110
113
  this.name = "SandboxNotFoundError";
111
- this.sandboxId = sandboxId;
112
114
  }
113
115
  };
114
116
  PoolNotFoundError = class extends SandboxError {
@@ -132,9 +134,6 @@ var init_errors = __esm({
132
134
  statusCode;
133
135
  /** Original response body, retained for compatibility and diagnostics. */
134
136
  responseMessage;
135
- sandboxId;
136
- /** Server reason, including unknown future reasons. */
137
- reason;
138
137
  errorDetails;
139
138
  constructor(statusCode, message) {
140
139
  let failure;
@@ -159,9 +158,10 @@ var init_errors = __esm({
159
158
  if (detail) displayMessage += `: ${detail}`;
160
159
  if (!reason && !detail) displayMessage = message;
161
160
  }
162
- super(`API error (status ${statusCode}): ${displayMessage}`);
163
- this.sandboxId = sandboxId;
164
- this.reason = reason;
161
+ super(`API error (status ${statusCode}): ${displayMessage}`, {
162
+ reason,
163
+ sandboxId
164
+ });
165
165
  this.errorDetails = errorDetails;
166
166
  this.name = "RemoteAPIError";
167
167
  this.statusCode = statusCode;
@@ -445,7 +445,7 @@ var init_native_worker_client = __esm({
445
445
  }
446
446
  };
447
447
  runtimeKey = /* @__PURE__ */ Symbol.for(
448
- `tensorlake.native.worker.${false ? "source" : "0.5.135"}.v1`
448
+ `tensorlake.native.worker.${false ? "source" : "0.5.136"}.v1`
449
449
  );
450
450
  runtimes = globalThis;
451
451
  }