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.
- 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.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
164
|
-
|
|
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;
|
|
@@ -421,7 +421,7 @@ var init_native_worker_client = __esm({
|
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
runtimeKey = /* @__PURE__ */ Symbol.for(
|
|
424
|
-
`tensorlake.native.worker.${false ? "source" : "0.5.
|
|
424
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.136"}.v1`
|
|
425
425
|
);
|
|
426
426
|
runtimes = globalThis;
|
|
427
427
|
}
|