@tensorlakeai/tensorlake 0.5.162 → 0.5.163

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.
Files changed (49) hide show
  1. package/dist/applications/index.cjs +26 -5
  2. package/dist/applications/index.cjs.map +1 -1
  3. package/dist/applications/index.d.cts +3 -3
  4. package/dist/applications/index.d.ts +3 -3
  5. package/dist/applications/index.js +26 -5
  6. package/dist/applications/index.js.map +1 -1
  7. package/dist/function-agent/main.cjs +18 -4
  8. package/dist/function-agent/main.cjs.map +1 -1
  9. package/dist/function-agent/main.js +18 -4
  10. package/dist/function-agent/main.js.map +1 -1
  11. package/dist/function-executor/main.cjs +5 -2
  12. package/dist/function-executor/main.cjs.map +1 -1
  13. package/dist/function-executor/main.js +5 -2
  14. package/dist/function-executor/main.js.map +1 -1
  15. package/dist/index.cjs +47 -12
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +9 -4
  18. package/dist/index.d.ts +9 -4
  19. package/dist/index.js +47 -12
  20. package/dist/index.js.map +1 -1
  21. package/dist/native-worker.cjs +12 -3
  22. package/dist/native-worker.cjs.map +1 -1
  23. package/dist/native-worker.js +12 -3
  24. package/dist/native-worker.js.map +1 -1
  25. package/dist/{remote-DYBXCTNC.d.ts → remote-BMibssYe.d.ts} +29 -29
  26. package/dist/{remote-CEs4GFGP.d.cts → remote-BzVx-ai8.d.cts} +29 -29
  27. package/dist/sandbox-image.cjs +12 -3
  28. package/dist/sandbox-image.cjs.map +1 -1
  29. package/dist/sandbox-image.d.cts +1 -1
  30. package/dist/sandbox-image.d.ts +1 -1
  31. package/dist/sandbox-image.js +12 -3
  32. package/dist/sandbox-image.js.map +1 -1
  33. package/package.json +14 -9
  34. package/runtime/function-executor/manifest.json +13 -13
  35. package/runtime/function-executor/package/dist/function-executor/main.js +5 -2
  36. package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
  37. package/runtime/function-executor/package/dist/native-worker.cjs +12 -3
  38. package/runtime/function-executor/package/dist/native-worker.cjs.map +1 -1
  39. package/runtime/function-executor/package/npm-shrinkwrap.json +27 -27
  40. package/runtime/function-executor/package/package.json +4 -4
  41. package/runtime/typescript-function-runner/manifest.json +13 -13
  42. package/runtime/typescript-function-runner/package/dist/function-agent/main.js +18 -4
  43. package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
  44. package/runtime/typescript-function-runner/package/dist/native-worker.cjs +12 -3
  45. package/runtime/typescript-function-runner/package/dist/native-worker.cjs.map +1 -1
  46. package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +48 -48
  47. package/runtime/typescript-function-runner/package/package.json +7 -7
  48. package/dist/{sandbox-image-C2GTVnx3.d.cts → image-CN0M59QP.d.cts} +48 -48
  49. package/dist/{sandbox-image-C2GTVnx3.d.ts → image-CN0M59QP.d.ts} +48 -48
@@ -1,6 +1,6 @@
1
- import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-CEs4GFGP.cjs';
2
- export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-CEs4GFGP.cjs';
3
- export { I as Image } from '../sandbox-image-C2GTVnx3.cjs';
1
+ import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-BzVx-ai8.cjs';
2
+ export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-BzVx-ai8.cjs';
3
+ export { I as Image } from '../image-CN0M59QP.cjs';
4
4
 
5
5
  declare const SDK_VERSION: string;
6
6
 
@@ -1,6 +1,6 @@
1
- import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-DYBXCTNC.js';
2
- export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-DYBXCTNC.js';
3
- export { I as Image } from '../sandbox-image-C2GTVnx3.js';
1
+ import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-BMibssYe.js';
2
+ export { a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, I as Infer, L as LocalRequest, P as Parameter, f as ParameterValues, g as RegisteredFunction, h as RemoteOptions, i as RemoteRequest, j as RequestContext, k as RequestContextValue, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, W as WaitOptions, n as WaitResult, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from '../remote-BMibssYe.js';
3
+ export { I as Image } from '../image-CN0M59QP.js';
4
4
 
5
5
  declare const SDK_VERSION: string;
6
6
 
@@ -4,11 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res) => function __init() {
8
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
7
+ var __esm = (fn, res, err) => function __init() {
8
+ if (err) throw err[0];
9
+ try {
10
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
+ } catch (e) {
12
+ throw err = [e], e;
13
+ }
9
14
  };
10
15
  var __commonJS = (cb, mod) => function __require() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ try {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ } catch (e) {
19
+ throw mod = 0, e;
20
+ }
12
21
  };
13
22
  var __export = (target, all) => {
14
23
  for (var name in all)
@@ -2586,7 +2595,7 @@ init_image();
2586
2595
 
2587
2596
  // src/defaults.ts
2588
2597
  init_esm_shims();
2589
- var SDK_VERSION = "0.5.162";
2598
+ var SDK_VERSION = "0.5.163";
2590
2599
  var API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
2591
2600
  var API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
2592
2601
  var NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
@@ -2779,6 +2788,7 @@ var MemoryRequestContext = class {
2779
2788
  this.headers = new Headers(options.headers);
2780
2789
  this.signal = options.signal ?? new AbortController().signal;
2781
2790
  }
2791
+ requestId;
2782
2792
  headers;
2783
2793
  signal;
2784
2794
  values = /* @__PURE__ */ new Map();
@@ -2825,6 +2835,9 @@ var LocalRequest = class {
2825
2835
  this.value = value;
2826
2836
  this.cancelRequest = cancelRequest;
2827
2837
  }
2838
+ id;
2839
+ value;
2840
+ cancelRequest;
2828
2841
  output() {
2829
2842
  return this.value;
2830
2843
  }
@@ -3216,6 +3229,7 @@ var NativeWorkerClient = class {
3216
3229
  )) {
3217
3230
  this.workerPath = workerPath;
3218
3231
  }
3232
+ workerPath;
3219
3233
  worker;
3220
3234
  nextId = 1;
3221
3235
  registered = /* @__PURE__ */ new Set();
@@ -3404,7 +3418,7 @@ function createWorkerBinding(runtime) {
3404
3418
  };
3405
3419
  }
3406
3420
  var runtimeKey = /* @__PURE__ */ Symbol.for(
3407
- `tensorlake.native.worker.${false ? "source" : "0.5.162"}.v1`
3421
+ `tensorlake.native.worker.${false ? "source" : "0.5.163"}.v1`
3408
3422
  );
3409
3423
  var runtimes = globalThis;
3410
3424
  function workerBinding() {
@@ -3547,6 +3561,7 @@ var NativeCloudTransport = class {
3547
3561
  throw new RangeError("retryBackoffMs must be a non-negative finite number");
3548
3562
  }
3549
3563
  }
3564
+ options;
3550
3565
  native;
3551
3566
  closed = false;
3552
3567
  client() {
@@ -4171,6 +4186,8 @@ var MountCli = class {
4171
4186
  this.command = command;
4172
4187
  this.envOverrides = envOverrides;
4173
4188
  }
4189
+ command;
4190
+ envOverrides;
4174
4191
  binary = null;
4175
4192
  async findCli() {
4176
4193
  const candidates = [];
@@ -4915,6 +4932,10 @@ var RemoteRequest = class {
4915
4932
  this.client = client;
4916
4933
  this.outputIsFile = outputIsFile;
4917
4934
  }
4935
+ id;
4936
+ applicationName;
4937
+ client;
4938
+ outputIsFile;
4918
4939
  async output() {
4919
4940
  let output;
4920
4941
  try {