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/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { l as ApplicationBuildImageResult, m as CreateApplicationBuildImageRequest, n as CreateSandboxImageOptions, I as Image, o as ImageBuildOperation, p as ImageBuildOperationType, p as ImageBuildOperationTypeValue, q as ImageOptions, r as ImportSandboxImageOptions, s as RequestErrorInfo, t as SandboxImageSource, u as SecretsPagination, v as createSandboxImage, w as deleteSandboxImage, x as dockerfileContent, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages } from './sandbox-image-
|
|
3
|
-
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-
|
|
1
|
+
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, F as FileSystem } from './sandbox-image-ChzWDeZy.cjs';
|
|
2
|
+
export { l as ApplicationBuildImageResult, m as CreateApplicationBuildImageRequest, n as CreateSandboxImageOptions, I as Image, o as ImageBuildOperation, p as ImageBuildOperationType, p as ImageBuildOperationTypeValue, q as ImageOptions, r as ImportSandboxImageOptions, s as RequestErrorInfo, t as SandboxImageSource, u as SecretsPagination, v as createSandboxImage, w as deleteSandboxImage, x as dockerfileContent, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages } from './sandbox-image-ChzWDeZy.cjs';
|
|
3
|
+
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-D95Y6Czr.cjs';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* The return value of every SDK operation. Carries the W3C `trace_id` so callers
|
|
7
|
-
* can correlate a specific request with its server-side spans in Datadog APM or
|
|
8
|
-
* any other OTEL-compatible backend.
|
|
9
|
-
*
|
|
10
|
-
* Because this is an intersection type, all properties of `T` are accessible
|
|
11
|
-
* directly — existing code that ignores `traceId` continues to compile and run
|
|
12
|
-
* unchanged.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* const sandbox = await client.createSandbox(req);
|
|
16
|
-
* console.log(sandbox.id); // existing field — unchanged
|
|
17
|
-
* console.log(sandbox.traceId); // new: look this up in Datadog APM
|
|
18
|
-
*/
|
|
5
|
+
/** An SDK result paired with its server-side W3C trace ID. */
|
|
19
6
|
type Traced<T> = T & {
|
|
20
7
|
readonly traceId: string;
|
|
21
8
|
};
|
|
@@ -368,7 +355,8 @@ interface SandboxInfo {
|
|
|
368
355
|
resources: ContainerResourcesInfo;
|
|
369
356
|
timeoutSecs?: number;
|
|
370
357
|
entrypoint?: string[];
|
|
371
|
-
network
|
|
358
|
+
/** Egress network policy currently applied to the sandbox. */
|
|
359
|
+
networkPolicy?: NetworkConfig;
|
|
372
360
|
poolId?: string;
|
|
373
361
|
outcome?: string;
|
|
374
362
|
terminationReason?: string;
|
|
@@ -1371,7 +1359,7 @@ declare class SandboxClient {
|
|
|
1371
1359
|
}
|
|
1372
1360
|
|
|
1373
1361
|
declare class CloudClient {
|
|
1374
|
-
private readonly
|
|
1362
|
+
private readonly transport;
|
|
1375
1363
|
private readonly organizationId?;
|
|
1376
1364
|
private readonly projectId?;
|
|
1377
1365
|
private readonly namespace;
|
|
@@ -2059,9 +2047,7 @@ declare class SandboxError extends SandboxException {
|
|
|
2059
2047
|
/**
|
|
2060
2048
|
* Raised when the client cannot complete a request against the API server.
|
|
2061
2049
|
*
|
|
2062
|
-
* The original transport error
|
|
2063
|
-
* whose real reason — `ECONNREFUSED`, `UND_ERR_CONNECT_TIMEOUT`, `EMFILE`, … —
|
|
2064
|
-
* lives in `.cause`) is preserved on this error's {@link cause} for programmatic
|
|
2050
|
+
* The original transport error is preserved on this error's {@link cause} for programmatic
|
|
2065
2051
|
* inspection, and its full chain is folded into the message so it survives
|
|
2066
2052
|
* wrappers that only forward `error.message`. No interpretation of the failure
|
|
2067
2053
|
* (client vs server) is applied — the raw inner error is surfaced as-is so the
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { l as ApplicationBuildImageResult, m as CreateApplicationBuildImageRequest, n as CreateSandboxImageOptions, I as Image, o as ImageBuildOperation, p as ImageBuildOperationType, p as ImageBuildOperationTypeValue, q as ImageOptions, r as ImportSandboxImageOptions, s as RequestErrorInfo, t as SandboxImageSource, u as SecretsPagination, v as createSandboxImage, w as deleteSandboxImage, x as dockerfileContent, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages } from './sandbox-image-
|
|
3
|
-
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-
|
|
1
|
+
import { C as CloudClientOptions, A as ApplicationManifest, B as BinaryPayload, S as SandboxTemplate, a as ApplicationSummary, R as RequestInput, c as RequestMetadata, b as RequestOutput, d as SecretsList, e as Secret, N as NewSecret, U as UpsertSecretResponse, f as StartImageBuildRequest, g as BuildInfo, h as CreateApplicationBuildRequest, i as ApplicationBuildContext, j as ApplicationBuildResponse, k as BuildLogEntry, F as FileSystem } from './sandbox-image-ChzWDeZy.js';
|
|
2
|
+
export { l as ApplicationBuildImageResult, m as CreateApplicationBuildImageRequest, n as CreateSandboxImageOptions, I as Image, o as ImageBuildOperation, p as ImageBuildOperationType, p as ImageBuildOperationTypeValue, q as ImageOptions, r as ImportSandboxImageOptions, s as RequestErrorInfo, t as SandboxImageSource, u as SecretsPagination, v as createSandboxImage, w as deleteSandboxImage, x as dockerfileContent, y as findSandboxImageByName, z as importSandboxImage, D as listSandboxImages } from './sandbox-image-ChzWDeZy.js';
|
|
3
|
+
export { v as APIClient, A as ApplicationCapability, a as ApplicationOptions, F as File, b as FunctionOptions, c as Future, H as Headers, d as HeadersInit, e as HttpBody, P as Parameter, g as RegisteredFunction, h as RemoteOptions, j as RequestContext, S as Schema, l as SimpleApplicationOptions, m as SimpleFunctionOptions, T as TailCall, r as registerApplication, o as registerFunction, p as remoteOptions, q as retries, s as runLocal, t as runRemote, u as schema } from './remote-omwTzbfj.js';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* The return value of every SDK operation. Carries the W3C `trace_id` so callers
|
|
7
|
-
* can correlate a specific request with its server-side spans in Datadog APM or
|
|
8
|
-
* any other OTEL-compatible backend.
|
|
9
|
-
*
|
|
10
|
-
* Because this is an intersection type, all properties of `T` are accessible
|
|
11
|
-
* directly — existing code that ignores `traceId` continues to compile and run
|
|
12
|
-
* unchanged.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* const sandbox = await client.createSandbox(req);
|
|
16
|
-
* console.log(sandbox.id); // existing field — unchanged
|
|
17
|
-
* console.log(sandbox.traceId); // new: look this up in Datadog APM
|
|
18
|
-
*/
|
|
5
|
+
/** An SDK result paired with its server-side W3C trace ID. */
|
|
19
6
|
type Traced<T> = T & {
|
|
20
7
|
readonly traceId: string;
|
|
21
8
|
};
|
|
@@ -368,7 +355,8 @@ interface SandboxInfo {
|
|
|
368
355
|
resources: ContainerResourcesInfo;
|
|
369
356
|
timeoutSecs?: number;
|
|
370
357
|
entrypoint?: string[];
|
|
371
|
-
network
|
|
358
|
+
/** Egress network policy currently applied to the sandbox. */
|
|
359
|
+
networkPolicy?: NetworkConfig;
|
|
372
360
|
poolId?: string;
|
|
373
361
|
outcome?: string;
|
|
374
362
|
terminationReason?: string;
|
|
@@ -1371,7 +1359,7 @@ declare class SandboxClient {
|
|
|
1371
1359
|
}
|
|
1372
1360
|
|
|
1373
1361
|
declare class CloudClient {
|
|
1374
|
-
private readonly
|
|
1362
|
+
private readonly transport;
|
|
1375
1363
|
private readonly organizationId?;
|
|
1376
1364
|
private readonly projectId?;
|
|
1377
1365
|
private readonly namespace;
|
|
@@ -2059,9 +2047,7 @@ declare class SandboxError extends SandboxException {
|
|
|
2059
2047
|
/**
|
|
2060
2048
|
* Raised when the client cannot complete a request against the API server.
|
|
2061
2049
|
*
|
|
2062
|
-
* The original transport error
|
|
2063
|
-
* whose real reason — `ECONNREFUSED`, `UND_ERR_CONNECT_TIMEOUT`, `EMFILE`, … —
|
|
2064
|
-
* lives in `.cause`) is preserved on this error's {@link cause} for programmatic
|
|
2050
|
+
* The original transport error is preserved on this error's {@link cause} for programmatic
|
|
2065
2051
|
* inspection, and its full chain is folded into the message so it survives
|
|
2066
2052
|
* wrappers that only forward `error.message`. No interpretation of the failure
|
|
2067
2053
|
* (client vs server) is applied — the raw inner error is surfaced as-is so the
|