tensorlake 0.5.131 → 0.5.133
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 +27 -0
- package/dist/applications/index.cjs +492 -708
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.d.cts +3 -3
- package/dist/applications/index.d.ts +3 -3
- package/dist/applications/index.js +493 -713
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +5 -2
- package/dist/function-agent/main.cjs.map +1 -1
- package/dist/function-agent/main.js +6 -3
- package/dist/function-agent/main.js.map +1 -1
- package/dist/function-executor/main.cjs +6 -3
- package/dist/function-executor/main.cjs.map +1 -1
- package/dist/function-executor/main.js +7 -4
- package/dist/function-executor/main.js.map +1 -1
- package/dist/index.cjs +121 -418
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -22
- package/dist/index.d.ts +8 -22
- package/dist/index.js +122 -423
- package/dist/index.js.map +1 -1
- package/dist/native-worker.cjs +1 -0
- package/dist/native-worker.cjs.map +1 -1
- package/dist/native-worker.js +1 -0
- package/dist/native-worker.js.map +1 -1
- package/dist/{remote-DRCCuRth.d.cts → remote-D95Y6Czr.d.cts} +1 -1
- package/dist/{remote-0dzBqScB.d.ts → remote-omwTzbfj.d.ts} +1 -1
- package/dist/{sandbox-image-Bf5bcxtO.d.cts → sandbox-image-ChzWDeZy.d.cts} +2 -0
- package/dist/{sandbox-image-Bf5bcxtO.d.ts → sandbox-image-ChzWDeZy.d.ts} +2 -0
- package/dist/sandbox-image.cjs +476 -453
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.d.cts +1 -1
- package/dist/sandbox-image.d.ts +1 -1
- package/dist/sandbox-image.js +475 -456
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +8 -8
- package/runtime/function-executor/manifest.json +14 -14
- package/runtime/function-executor/package/dist/function-executor/main.js +7 -4
- package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
- package/runtime/function-executor/package/dist/native-worker.cjs +1 -0
- package/runtime/function-executor/package/dist/native-worker.cjs.map +1 -1
- package/runtime/function-executor/package/npm-shrinkwrap.json +2 -12
- package/runtime/function-executor/package/package.json +1 -2
- package/runtime/typescript-function-runner/manifest.json +13 -13
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +6 -3
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
- package/runtime/typescript-function-runner/package/dist/native-worker.cjs +1 -0
- package/runtime/typescript-function-runner/package/dist/native-worker.cjs.map +1 -1
- package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +20 -29
- package/runtime/typescript-function-runner/package/package.json +7 -7
package/README.md
CHANGED
|
@@ -138,3 +138,30 @@ These tests use bounded fake-server event sequences to cover terminal-result car
|
|
|
138
138
|
## Live server verification
|
|
139
139
|
|
|
140
140
|
The [server-verification example](examples/server-verification/README.md) uses the normal `tl deploy <PATH>` workflow to deploy eight reference applications and verify durable calls, retries and retry exhaustion, concurrent fan-out, server-orchestrated reduce, nested calls, request context, tail calls, files, and request errors against an already-running server.
|
|
141
|
+
|
|
142
|
+
## Native transport and application preloads
|
|
143
|
+
|
|
144
|
+
Cloud, sandbox, repository, and filesystem HTTP operations use the Rust SDK
|
|
145
|
+
through an internal worker. Keep the platform-specific optional native package
|
|
146
|
+
installed. Importing Tensorlake does not replace the application's HTTP dispatcher.
|
|
147
|
+
|
|
148
|
+
The worker starts with an empty `execArgv` and a copied environment with
|
|
149
|
+
`NODE_OPTIONS` cleared, so application `--require`, `--import`, and loader hooks
|
|
150
|
+
do not run inside it. Other environment variables are copied when it starts.
|
|
151
|
+
The application's own startup flags and environment remain intact. Native HTTPS
|
|
152
|
+
uses the Rust SDK's bundled Mozilla certificate roots.
|
|
153
|
+
|
|
154
|
+
`CloudClient.close()` cancels its active requests and streams and prevents further
|
|
155
|
+
requests. Buffered cloud requests have a 300-second deadline covering retries and
|
|
156
|
+
body reads. Progress and build-log streams have a connection deadline and can
|
|
157
|
+
remain open until completion or cancellation. `maxRetries` and `retryBackoffMs`
|
|
158
|
+
control transient retries for safe reads; mutations are replayed only when the
|
|
159
|
+
Rust retry policy establishes that they were not delivered, within its 30-second
|
|
160
|
+
replay budget. A lost response after delivery does not replay an application invocation.
|
|
161
|
+
Mutation redirects are returned as errors instead of being followed, because a
|
|
162
|
+
failure fetching the redirected result cannot prove that the mutation was not
|
|
163
|
+
delivered. Safe reads still follow redirects and retry failed response transfers.
|
|
164
|
+
Cloud requests advertise gzip support and decode gzip responses, including live SSE.
|
|
165
|
+
|
|
166
|
+
After building the SDK and native addon, run `npm run test:native-cloud` to check
|
|
167
|
+
the cloud transport against a local HTTP server.
|