@tensorlakeai/tensorlake 0.5.145 → 0.5.148

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.145";
49
+ SDK_VERSION = "0.5.148";
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";
@@ -100,10 +100,18 @@ function fromSnakeKeys(obj, idField) {
100
100
  }
101
101
  return obj;
102
102
  }
103
+ var CommandExitReason;
103
104
  var init_models = __esm({
104
105
  "src/models.ts"() {
105
106
  "use strict";
106
107
  init_esm_shims();
108
+ CommandExitReason = /* @__PURE__ */ ((CommandExitReason2) => {
109
+ CommandExitReason2["EXITED"] = "exited";
110
+ CommandExitReason2["SIGNALED"] = "signaled";
111
+ CommandExitReason2["OOM_KILLED"] = "oom_killed";
112
+ CommandExitReason2["TIMED_OUT"] = "timed_out";
113
+ return CommandExitReason2;
114
+ })(CommandExitReason || {});
107
115
  }
108
116
  });
109
117
 
@@ -514,7 +522,7 @@ var init_native_worker_client = __esm({
514
522
  }
515
523
  };
516
524
  runtimeKey = /* @__PURE__ */ Symbol.for(
517
- `tensorlake.native.worker.${false ? "source" : "0.5.145"}.v1`
525
+ `tensorlake.native.worker.${false ? "source" : "0.5.148"}.v1`
518
526
  );
519
527
  runtimes = globalThis;
520
528
  }
@@ -637,7 +645,7 @@ async function* nativeEventStream(start, context, signal) {
637
645
  for (const event of queue) event.consumed();
638
646
  }
639
647
  }
640
- var cachedBinding;
648
+ var cachedBinding, KNOWN_EXIT_REASONS;
641
649
  var init_native_sandbox = __esm({
642
650
  "src/native-sandbox.ts"() {
643
651
  "use strict";
@@ -646,6 +654,7 @@ var init_native_sandbox = __esm({
646
654
  init_errors();
647
655
  init_native_worker_client();
648
656
  init_native_worker_protocol();
657
+ KNOWN_EXIT_REASONS = new Set(Object.values(CommandExitReason));
649
658
  }
650
659
  });
651
660