@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.
- package/README.md +8 -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.cjs.map +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-agent/main.js.map +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.cjs.map +1 -1
- package/dist/function-executor/main.js +2 -2
- package/dist/function-executor/main.js.map +1 -1
- package/dist/index.cjs +46 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +45 -188
- package/dist/index.js.map +1 -1
- package/dist/sandbox-image.cjs +7 -2
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.js +7 -2
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +8 -7
- package/runtime/function-executor/manifest.json +7 -7
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
- 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 +7 -7
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +1 -1
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
- package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +26 -26
- 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.
|
|
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.
|
|
533
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.152"}.v1`
|
|
529
534
|
);
|
|
530
535
|
runtimes = globalThis;
|
|
531
536
|
}
|