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.
Files changed (50) hide show
  1. package/README.md +27 -0
  2. package/dist/applications/index.cjs +492 -708
  3. package/dist/applications/index.cjs.map +1 -1
  4. package/dist/applications/index.d.cts +3 -3
  5. package/dist/applications/index.d.ts +3 -3
  6. package/dist/applications/index.js +493 -713
  7. package/dist/applications/index.js.map +1 -1
  8. package/dist/function-agent/main.cjs +5 -2
  9. package/dist/function-agent/main.cjs.map +1 -1
  10. package/dist/function-agent/main.js +6 -3
  11. package/dist/function-agent/main.js.map +1 -1
  12. package/dist/function-executor/main.cjs +6 -3
  13. package/dist/function-executor/main.cjs.map +1 -1
  14. package/dist/function-executor/main.js +7 -4
  15. package/dist/function-executor/main.js.map +1 -1
  16. package/dist/index.cjs +121 -418
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +8 -22
  19. package/dist/index.d.ts +8 -22
  20. package/dist/index.js +122 -423
  21. package/dist/index.js.map +1 -1
  22. package/dist/native-worker.cjs +1 -0
  23. package/dist/native-worker.cjs.map +1 -1
  24. package/dist/native-worker.js +1 -0
  25. package/dist/native-worker.js.map +1 -1
  26. package/dist/{remote-DRCCuRth.d.cts → remote-D95Y6Czr.d.cts} +1 -1
  27. package/dist/{remote-0dzBqScB.d.ts → remote-omwTzbfj.d.ts} +1 -1
  28. package/dist/{sandbox-image-Bf5bcxtO.d.cts → sandbox-image-ChzWDeZy.d.cts} +2 -0
  29. package/dist/{sandbox-image-Bf5bcxtO.d.ts → sandbox-image-ChzWDeZy.d.ts} +2 -0
  30. package/dist/sandbox-image.cjs +476 -453
  31. package/dist/sandbox-image.cjs.map +1 -1
  32. package/dist/sandbox-image.d.cts +1 -1
  33. package/dist/sandbox-image.d.ts +1 -1
  34. package/dist/sandbox-image.js +475 -456
  35. package/dist/sandbox-image.js.map +1 -1
  36. package/package.json +8 -8
  37. package/runtime/function-executor/manifest.json +14 -14
  38. package/runtime/function-executor/package/dist/function-executor/main.js +7 -4
  39. package/runtime/function-executor/package/dist/function-executor/main.js.map +1 -1
  40. package/runtime/function-executor/package/dist/native-worker.cjs +1 -0
  41. package/runtime/function-executor/package/dist/native-worker.cjs.map +1 -1
  42. package/runtime/function-executor/package/npm-shrinkwrap.json +2 -12
  43. package/runtime/function-executor/package/package.json +1 -2
  44. package/runtime/typescript-function-runner/manifest.json +13 -13
  45. package/runtime/typescript-function-runner/package/dist/function-agent/main.js +6 -3
  46. package/runtime/typescript-function-runner/package/dist/function-agent/main.js.map +1 -1
  47. package/runtime/typescript-function-runner/package/dist/native-worker.cjs +1 -0
  48. package/runtime/typescript-function-runner/package/dist/native-worker.cjs.map +1 -1
  49. package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +20 -29
  50. 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-Bf5bcxtO.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-Bf5bcxtO.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-DRCCuRth.cjs';
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?: NetworkConfig;
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 http;
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 (typically undici's `TypeError: fetch failed`,
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-Bf5bcxtO.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-Bf5bcxtO.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-0dzBqScB.js';
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?: NetworkConfig;
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 http;
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 (typically undici's `TypeError: fetch failed`,
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