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