@tensorlakeai/tensorlake 0.5.151 → 0.5.152

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 (34) hide show
  1. package/README.md +8 -0
  2. package/dist/applications/index.cjs +7 -2
  3. package/dist/applications/index.cjs.map +1 -1
  4. package/dist/applications/index.js +7 -2
  5. package/dist/applications/index.js.map +1 -1
  6. package/dist/function-agent/main.cjs +1 -1
  7. package/dist/function-agent/main.cjs.map +1 -1
  8. package/dist/function-agent/main.js +1 -1
  9. package/dist/function-agent/main.js.map +1 -1
  10. package/dist/function-executor/main.cjs +2 -2
  11. package/dist/function-executor/main.cjs.map +1 -1
  12. package/dist/function-executor/main.js +2 -2
  13. package/dist/function-executor/main.js.map +1 -1
  14. package/dist/index.cjs +46 -189
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +2 -6
  17. package/dist/index.d.ts +2 -6
  18. package/dist/index.js +45 -188
  19. package/dist/index.js.map +1 -1
  20. package/dist/sandbox-image.cjs +7 -2
  21. package/dist/sandbox-image.cjs.map +1 -1
  22. package/dist/sandbox-image.js +7 -2
  23. package/dist/sandbox-image.js.map +1 -1
  24. package/package.json +8 -7
  25. package/runtime/function-executor/manifest.json +7 -7
  26. package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
  27. package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
  28. package/runtime/function-executor/package/npm-shrinkwrap.json +2 -2
  29. package/runtime/function-executor/package/package.json +1 -1
  30. package/runtime/typescript-function-runner/manifest.json +7 -7
  31. package/runtime/typescript-function-runner/package/dist/function-agent/main.js +1 -1
  32. package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
  33. package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +26 -26
  34. package/runtime/typescript-function-runner/package/package.json +7 -7
package/README.md CHANGED
@@ -145,6 +145,12 @@ Cloud, sandbox, repository, and filesystem HTTP operations use the Rust SDK
145
145
  through an internal worker. Keep the platform-specific optional native package
146
146
  installed. Importing Tensorlake does not replace the application's HTTP dispatcher.
147
147
 
148
+ TCP port forwarding also uses this worker and the shared Rust tunnel transport,
149
+ used by the CLI and Python's synchronous and async interfaces. Rust owns the
150
+ listener, WebSocket/TLS connection, backpressure, keepalive, and shutdown. Public
151
+ tunnel APIs and the server protocol are unchanged. The shared regression tests
152
+ are in `crates/cloud-sdk/src/sandboxes/tunnel/tests.rs`.
153
+
148
154
  The worker starts with an empty `execArgv` and a copied environment with
149
155
  `NODE_OPTIONS` cleared, so application `--require`, `--import`, and loader hooks
150
156
  do not run inside it. Other environment variables are copied when it starts.
@@ -165,3 +171,5 @@ Cloud requests advertise gzip support and decode gzip responses, including live
165
171
 
166
172
  After building the SDK and native addon, run `npm run test:native-cloud` to check
167
173
  the cloud transport against a local HTTP server.
174
+ Run `npm run test:native-tunnel` to check TCP forwarding through the worker and
175
+ native addon against a local WebSocket server.
@@ -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.151";
52
+ SDK_VERSION = "0.5.152";
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";
@@ -346,6 +346,11 @@ function createWorkerBinding(runtime) {
346
346
  return runtime.handle("NativeRepositoryClient", args);
347
347
  }
348
348
  },
349
+ NativeTcpTunnel: class {
350
+ constructor() {
351
+ return runtime.handle("NativeTcpTunnel", []);
352
+ }
353
+ },
349
354
  validateManagedName: (name) => runtime.call(void 0, "validateManagedName", [name])
350
355
  };
351
356
  }
@@ -525,7 +530,7 @@ var init_native_worker_client = __esm({
525
530
  }
526
531
  };
527
532
  runtimeKey = /* @__PURE__ */ Symbol.for(
528
- `tensorlake.native.worker.${false ? "source" : "0.5.151"}.v1`
533
+ `tensorlake.native.worker.${false ? "source" : "0.5.152"}.v1`
529
534
  );
530
535
  runtimes = globalThis;
531
536
  }