@tensorlakeai/tensorlake 0.5.150 → 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 +14 -3
- 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 +14 -3
- 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 +53 -190
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -9
- package/dist/index.d.ts +5 -9
- package/dist/index.js +52 -189
- package/dist/index.js.map +1 -1
- package/dist/{remote-dblFxKug.d.ts → remote-BbSrvgUn.d.ts} +1 -1
- package/dist/{remote-CNJ9TmcQ.d.cts → remote-CC48cvYP.d.cts} +1 -1
- package/dist/{sandbox-image-ChzWDeZy.d.cts → sandbox-image-CAK_K7ND.d.cts} +14 -0
- package/dist/{sandbox-image-ChzWDeZy.d.ts → sandbox-image-CAK_K7ND.d.ts} +14 -0
- package/dist/sandbox-image.cjs +14 -3
- 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 +14 -3
- 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/dist/sandbox-image.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { E as BuildContext, G as CreateSandboxImageDeps, n as CreateSandboxImageOptions, r as ImportSandboxImageOptions, t as SandboxImageSource, _ as __setNativeBindingForTest, H as buildContextFromEnv, v as createSandboxImage, w as deleteSandboxImage, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages, J as runCreateSandboxImageCli, K as runImportSandboxImageCli } from './sandbox-image-
|
|
1
|
+
export { E as BuildContext, G as CreateSandboxImageDeps, n as CreateSandboxImageOptions, r as ImportSandboxImageOptions, t as SandboxImageSource, _ as __setNativeBindingForTest, H as buildContextFromEnv, v as createSandboxImage, w as deleteSandboxImage, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages, J as runCreateSandboxImageCli, K as runImportSandboxImageCli } from './sandbox-image-CAK_K7ND.cjs';
|
package/dist/sandbox-image.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { E as BuildContext, G as CreateSandboxImageDeps, n as CreateSandboxImageOptions, r as ImportSandboxImageOptions, t as SandboxImageSource, _ as __setNativeBindingForTest, H as buildContextFromEnv, v as createSandboxImage, w as deleteSandboxImage, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages, J as runCreateSandboxImageCli, K as runImportSandboxImageCli } from './sandbox-image-
|
|
1
|
+
export { E as BuildContext, G as CreateSandboxImageDeps, n as CreateSandboxImageOptions, r as ImportSandboxImageOptions, t as SandboxImageSource, _ as __setNativeBindingForTest, H as buildContextFromEnv, v as createSandboxImage, w as deleteSandboxImage, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages, J as runCreateSandboxImageCli, K as runImportSandboxImageCli } from './sandbox-image-CAK_K7ND.js';
|
package/dist/sandbox-image.js
CHANGED
|
@@ -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.
|
|
49
|
+
SDK_VERSION = "0.5.152";
|
|
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";
|
|
@@ -321,6 +321,11 @@ function createWorkerBinding(runtime) {
|
|
|
321
321
|
return runtime.handle("NativeRepositoryClient", args);
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
|
+
NativeTcpTunnel: class {
|
|
325
|
+
constructor() {
|
|
326
|
+
return runtime.handle("NativeTcpTunnel", []);
|
|
327
|
+
}
|
|
328
|
+
},
|
|
324
329
|
validateManagedName: (name) => runtime.call(void 0, "validateManagedName", [name])
|
|
325
330
|
};
|
|
326
331
|
}
|
|
@@ -498,7 +503,7 @@ var init_native_worker_client = __esm({
|
|
|
498
503
|
}
|
|
499
504
|
};
|
|
500
505
|
runtimeKey = /* @__PURE__ */ Symbol.for(
|
|
501
|
-
`tensorlake.native.worker.${false ? "source" : "0.5.
|
|
506
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.152"}.v1`
|
|
502
507
|
);
|
|
503
508
|
runtimes = globalThis;
|
|
504
509
|
}
|
|
@@ -1692,6 +1697,7 @@ async function createSandboxImage(source, options = {}, deps = {}) {
|
|
|
1692
1697
|
useScopeHeaders: usePat,
|
|
1693
1698
|
userAgent: void 0,
|
|
1694
1699
|
dockerCompat: options.dockerCompat ?? false,
|
|
1700
|
+
dockerConfigJson: options.dockerConfigJson,
|
|
1695
1701
|
dockerfileText,
|
|
1696
1702
|
contextDir: nativeContextDir
|
|
1697
1703
|
},
|
|
@@ -1770,7 +1776,8 @@ async function importSandboxImage(imageReference, options = {}, deps = {}) {
|
|
|
1770
1776
|
namespace: context.namespace,
|
|
1771
1777
|
useScopeHeaders: usePat,
|
|
1772
1778
|
userAgent: void 0,
|
|
1773
|
-
dockerCompat: options.dockerCompat ?? false
|
|
1779
|
+
dockerCompat: options.dockerCompat ?? false,
|
|
1780
|
+
dockerConfigJson: options.dockerConfigJson
|
|
1774
1781
|
},
|
|
1775
1782
|
(event) => {
|
|
1776
1783
|
try {
|
|
@@ -1905,10 +1912,12 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
1905
1912
|
`Invalid --builder_disk_mb value: ${parsed.values.builder_disk_mb}`
|
|
1906
1913
|
);
|
|
1907
1914
|
}
|
|
1915
|
+
const dockerConfigJson = loadNativeBinding().loadDockerConfigJson();
|
|
1908
1916
|
await createSandboxImage(
|
|
1909
1917
|
dockerfilePath,
|
|
1910
1918
|
{
|
|
1911
1919
|
registeredName: parsed.values.name,
|
|
1920
|
+
dockerConfigJson,
|
|
1912
1921
|
cpus,
|
|
1913
1922
|
memoryMb,
|
|
1914
1923
|
diskMb,
|
|
@@ -1957,10 +1966,12 @@ async function runImportSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
1957
1966
|
`Invalid --builder_disk_mb value: ${parsed.values.builder_disk_mb}`
|
|
1958
1967
|
);
|
|
1959
1968
|
}
|
|
1969
|
+
const dockerConfigJson = loadNativeBinding().loadDockerConfigJson();
|
|
1960
1970
|
await importSandboxImage(
|
|
1961
1971
|
imageReference,
|
|
1962
1972
|
{
|
|
1963
1973
|
registeredName: parsed.values.name,
|
|
1974
|
+
dockerConfigJson,
|
|
1964
1975
|
cpus,
|
|
1965
1976
|
memoryMb,
|
|
1966
1977
|
diskMb,
|