tensorlake 0.5.134 → 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.
- package/dist/applications/index.cjs +12 -12
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.js +12 -12
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.js +2 -2
- package/dist/index.cjs +426 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +259 -9
- package/dist/index.d.ts +259 -9
- package/dist/index.js +420 -128
- package/dist/index.js.map +1 -1
- package/dist/sandbox-image.cjs +12 -12
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.js +12 -12
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +7 -7
- package/runtime/function-executor/manifest.json +5 -5
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- package/runtime/function-executor/package/npm-shrinkwrap.json +2 -2
- package/runtime/function-executor/package/package.json +1 -1
- package/runtime/typescript-function-runner/manifest.json +5 -5
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +1 -1
- package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +20 -20
- package/runtime/typescript-function-runner/package/package.json +7 -7
package/dist/sandbox-image.cjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
167
|
-
|
|
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;
|
|
@@ -424,7 +424,7 @@ var init_native_worker_client = __esm({
|
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
runtimeKey = /* @__PURE__ */ Symbol.for(
|
|
427
|
-
`tensorlake.native.worker.${false ? "source" : "0.5.
|
|
427
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.136"}.v1`
|
|
428
428
|
);
|
|
429
429
|
runtimes = globalThis;
|
|
430
430
|
}
|