@tensorlakeai/tensorlake 0.5.157 → 0.5.159
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/README.md +25 -0
- package/dist/applications/index.cjs +7 -2
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.js +7 -2
- 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 +120 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -7
- package/dist/index.d.ts +39 -7
- package/dist/index.js +120 -109
- package/dist/index.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 +26 -26
- package/runtime/typescript-function-runner/package/package.json +7 -7
|
@@ -2586,7 +2586,7 @@ init_image();
|
|
|
2586
2586
|
|
|
2587
2587
|
// src/defaults.ts
|
|
2588
2588
|
init_esm_shims();
|
|
2589
|
-
var SDK_VERSION = "0.5.
|
|
2589
|
+
var SDK_VERSION = "0.5.159";
|
|
2590
2590
|
var API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
|
|
2591
2591
|
var API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
|
|
2592
2592
|
var NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
|
|
@@ -3104,13 +3104,17 @@ var RemoteAPIError = class extends SandboxError {
|
|
|
3104
3104
|
statusCode;
|
|
3105
3105
|
/** Original response body, retained for compatibility and diagnostics. */
|
|
3106
3106
|
responseMessage;
|
|
3107
|
+
/** Machine-readable API error code, including proxy policy failures. */
|
|
3108
|
+
code;
|
|
3107
3109
|
errorDetails;
|
|
3108
3110
|
constructor(statusCode, message) {
|
|
3109
3111
|
let failure;
|
|
3112
|
+
let code;
|
|
3110
3113
|
try {
|
|
3111
3114
|
const payload = JSON.parse(message);
|
|
3112
3115
|
if (payload && typeof payload === "object" && !Array.isArray(payload)) {
|
|
3113
3116
|
const record = payload;
|
|
3117
|
+
if (typeof record.code === "string") code = record.code;
|
|
3114
3118
|
if (typeof record.sandbox_id === "string" && record.sandbox_id.trim() && (record.status === "failed" || record.status === "terminated"))
|
|
3115
3119
|
failure = record;
|
|
3116
3120
|
}
|
|
@@ -3136,6 +3140,7 @@ var RemoteAPIError = class extends SandboxError {
|
|
|
3136
3140
|
this.name = "RemoteAPIError";
|
|
3137
3141
|
this.statusCode = statusCode;
|
|
3138
3142
|
this.responseMessage = message;
|
|
3143
|
+
this.code = code;
|
|
3139
3144
|
}
|
|
3140
3145
|
};
|
|
3141
3146
|
var RequestNotFinishedError = class extends Error {
|
|
@@ -3394,7 +3399,7 @@ function createWorkerBinding(runtime) {
|
|
|
3394
3399
|
};
|
|
3395
3400
|
}
|
|
3396
3401
|
var runtimeKey = /* @__PURE__ */ Symbol.for(
|
|
3397
|
-
`tensorlake.native.worker.${false ? "source" : "0.5.
|
|
3402
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.159"}.v1`
|
|
3398
3403
|
);
|
|
3399
3404
|
var runtimes = globalThis;
|
|
3400
3405
|
function workerBinding() {
|