@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-
|
|
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-
|
|
3
|
-
export { I as Image } from '../sandbox-image-
|
|
1
|
+
import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-CC48cvYP.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-CC48cvYP.cjs';
|
|
3
|
+
export { I as Image } from '../sandbox-image-CAK_K7ND.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-
|
|
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-
|
|
3
|
-
export { I as Image } from '../sandbox-image-
|
|
1
|
+
import { A as ApplicationCapability, J as JSONSchema, R as RegisteredDefinition } from '../remote-BbSrvgUn.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-BbSrvgUn.js';
|
|
3
|
+
export { I as Image } from '../sandbox-image-CAK_K7ND.js';
|
|
4
4
|
|
|
5
5
|
declare const SDK_VERSION: string;
|
|
6
6
|
|
|
@@ -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";
|
|
@@ -345,6 +345,11 @@ function createWorkerBinding(runtime) {
|
|
|
345
345
|
return runtime.handle("NativeRepositoryClient", args);
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
|
+
NativeTcpTunnel: class {
|
|
349
|
+
constructor() {
|
|
350
|
+
return runtime.handle("NativeTcpTunnel", []);
|
|
351
|
+
}
|
|
352
|
+
},
|
|
348
353
|
validateManagedName: (name) => runtime.call(void 0, "validateManagedName", [name])
|
|
349
354
|
};
|
|
350
355
|
}
|
|
@@ -522,7 +527,7 @@ var init_native_worker_client = __esm({
|
|
|
522
527
|
}
|
|
523
528
|
};
|
|
524
529
|
runtimeKey = /* @__PURE__ */ Symbol.for(
|
|
525
|
-
`tensorlake.native.worker.${false ? "source" : "0.5.
|
|
530
|
+
`tensorlake.native.worker.${false ? "source" : "0.5.152"}.v1`
|
|
526
531
|
);
|
|
527
532
|
runtimes = globalThis;
|
|
528
533
|
}
|
|
@@ -1591,6 +1596,7 @@ async function createSandboxImage(source, options = {}, deps = {}) {
|
|
|
1591
1596
|
useScopeHeaders: usePat,
|
|
1592
1597
|
userAgent: void 0,
|
|
1593
1598
|
dockerCompat: options.dockerCompat ?? false,
|
|
1599
|
+
dockerConfigJson: options.dockerConfigJson,
|
|
1594
1600
|
dockerfileText,
|
|
1595
1601
|
contextDir: nativeContextDir
|
|
1596
1602
|
},
|
|
@@ -1669,7 +1675,8 @@ async function importSandboxImage(imageReference, options = {}, deps = {}) {
|
|
|
1669
1675
|
namespace: context.namespace,
|
|
1670
1676
|
useScopeHeaders: usePat,
|
|
1671
1677
|
userAgent: void 0,
|
|
1672
|
-
dockerCompat: options.dockerCompat ?? false
|
|
1678
|
+
dockerCompat: options.dockerCompat ?? false,
|
|
1679
|
+
dockerConfigJson: options.dockerConfigJson
|
|
1673
1680
|
},
|
|
1674
1681
|
(event) => {
|
|
1675
1682
|
try {
|
|
@@ -1804,10 +1811,12 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
1804
1811
|
`Invalid --builder_disk_mb value: ${parsed.values.builder_disk_mb}`
|
|
1805
1812
|
);
|
|
1806
1813
|
}
|
|
1814
|
+
const dockerConfigJson = loadNativeBinding().loadDockerConfigJson();
|
|
1807
1815
|
await createSandboxImage(
|
|
1808
1816
|
dockerfilePath,
|
|
1809
1817
|
{
|
|
1810
1818
|
registeredName: parsed.values.name,
|
|
1819
|
+
dockerConfigJson,
|
|
1811
1820
|
cpus,
|
|
1812
1821
|
memoryMb,
|
|
1813
1822
|
diskMb,
|
|
@@ -1856,10 +1865,12 @@ async function runImportSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
1856
1865
|
`Invalid --builder_disk_mb value: ${parsed.values.builder_disk_mb}`
|
|
1857
1866
|
);
|
|
1858
1867
|
}
|
|
1868
|
+
const dockerConfigJson = loadNativeBinding().loadDockerConfigJson();
|
|
1859
1869
|
await importSandboxImage(
|
|
1860
1870
|
imageReference,
|
|
1861
1871
|
{
|
|
1862
1872
|
registeredName: parsed.values.name,
|
|
1873
|
+
dockerConfigJson,
|
|
1863
1874
|
cpus,
|
|
1864
1875
|
memoryMb,
|
|
1865
1876
|
diskMb,
|