@tensorlakeai/tensorlake 0.5.154 → 0.5.157
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/dist/applications/index.cjs +131 -40
- 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 +131 -40
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.js +2 -2
- package/dist/index.cjs +175 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -23
- package/dist/index.d.ts +31 -23
- package/dist/index.js +175 -62
- package/dist/index.js.map +1 -1
- package/dist/{remote-B3vn4tt1.d.cts → remote-CEs4GFGP.d.cts} +1 -1
- package/dist/{remote-DqBUuciu.d.ts → remote-DYBXCTNC.d.ts} +1 -1
- package/dist/{sandbox-image-BMiFlzAs.d.cts → sandbox-image-C2GTVnx3.d.cts} +99 -52
- package/dist/{sandbox-image-BMiFlzAs.d.ts → sandbox-image-C2GTVnx3.d.ts} +99 -52
- package/dist/sandbox-image.cjs +119 -30
- 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 +119 -30
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +7 -7
- package/runtime/function-executor/manifest.json +5 -5
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- 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 +5 -5
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +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/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E 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, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-C2GTVnx3.cjs';
|
|
2
|
+
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-C2GTVnx3.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-CEs4GFGP.cjs';
|
|
4
4
|
|
|
5
5
|
/** An SDK result paired with its server-side W3C trace ID. */
|
|
6
6
|
type Traced<T> = T & {
|
|
@@ -89,6 +89,7 @@ interface NativeSandboxClient {
|
|
|
89
89
|
createSnapshot(sandboxId: string, snapshotType?: string | null): Promise<TracedJson>;
|
|
90
90
|
getSnapshot(snapshotId: string): Promise<TracedJson>;
|
|
91
91
|
listSnapshots(): Promise<TracedJson>;
|
|
92
|
+
listSandboxSnapshots(sandboxId: string): Promise<TracedJson>;
|
|
92
93
|
deleteSnapshot(snapshotId: string): Promise<string>;
|
|
93
94
|
createPool(requestJson: string): Promise<TracedJson>;
|
|
94
95
|
getPool(poolId: string): Promise<TracedJson>;
|
|
@@ -1629,6 +1630,11 @@ declare class SandboxClient {
|
|
|
1629
1630
|
getSnapshot(snapshotId: string): Promise<Traced<SnapshotInfo>>;
|
|
1630
1631
|
/** List all snapshots in the namespace. */
|
|
1631
1632
|
listSnapshots(): Promise<Traced<SnapshotInfo[]>>;
|
|
1633
|
+
/**
|
|
1634
|
+
* List snapshots taken from one sandbox (its ID or name), from the
|
|
1635
|
+
* sandbox's own listing rather than the whole namespace's.
|
|
1636
|
+
*/
|
|
1637
|
+
listSandboxSnapshots(sandboxId: string): Promise<Traced<SnapshotInfo[]>>;
|
|
1632
1638
|
/** Delete a snapshot by ID. */
|
|
1633
1639
|
deleteSnapshot(snapshotId: string): Promise<void>;
|
|
1634
1640
|
/**
|
|
@@ -1693,19 +1699,21 @@ declare class CloudClient {
|
|
|
1693
1699
|
upsertApplication(manifest: ApplicationManifest, codeZip: BinaryPayload, upgradeRunningRequests?: boolean): Promise<void>;
|
|
1694
1700
|
deleteApplication(applicationName: string): Promise<void>;
|
|
1695
1701
|
/**
|
|
1696
|
-
* Delete a registered sandbox image by name or id through the
|
|
1697
|
-
* catalog, with this client's credentials: an `image_` id or a name
|
|
1698
|
-
*
|
|
1699
|
-
* name registered only in the
|
|
1702
|
+
* Delete a registered CAS or legacy sandbox image by name or id through the
|
|
1703
|
+
* merged catalog, with this client's credentials: an `image_` id or a name
|
|
1704
|
+
* the CAS image registry knows deletes a CAS image, a `sandbox_template_` id
|
|
1705
|
+
* or a name registered only in the legacy image registry deletes a legacy
|
|
1706
|
+
* image.
|
|
1707
|
+
* A name is deleted from both the CAS and the legacy image registries.
|
|
1700
1708
|
* Rejects when neither catalog knows the reference. The same semantics
|
|
1701
1709
|
* and accepted differences as the module-level `deleteSandboxImage`.
|
|
1702
1710
|
*/
|
|
1703
1711
|
deleteSandboxImage(imageName: string): Promise<void>;
|
|
1704
1712
|
/**
|
|
1705
|
-
* Look up a registered sandbox image by name or id through
|
|
1706
|
-
* catalog, with this client's credentials. Returns the image in
|
|
1707
|
-
* sandbox-template shape, or `null` when neither the
|
|
1708
|
-
*
|
|
1713
|
+
* Look up a registered CAS or legacy sandbox image by name or id through
|
|
1714
|
+
* the merged catalog, with this client's credentials. Returns the image in
|
|
1715
|
+
* the sandbox-template shape, or `null` when neither the CAS nor the legacy
|
|
1716
|
+
* image registry knows the reference. An explicit organization/project
|
|
1709
1717
|
* scope (the client's, or the call's override) addresses that project's
|
|
1710
1718
|
* routes directly, as before; without one the key's own scope applies.
|
|
1711
1719
|
*/
|
|
@@ -2041,18 +2049,18 @@ declare class RepositoryClient {
|
|
|
2041
2049
|
}
|
|
2042
2050
|
|
|
2043
2051
|
/**
|
|
2044
|
-
*
|
|
2052
|
+
* Build operations for CAS sandbox images.
|
|
2045
2053
|
*
|
|
2046
|
-
* A CAS (content-addressed streaming) image is built or imported by
|
|
2047
|
-
*
|
|
2054
|
+
* A CAS (content-addressed streaming) image is built or imported by a *build
|
|
2055
|
+
* operation*. This module exposes that operation directly:
|
|
2048
2056
|
* {@link startImageBuild} / {@link startImageImport} admit a build (and upload
|
|
2049
2057
|
* and seal its context) and return an {@link ImageBuildHandle} without
|
|
2050
2058
|
* waiting; {@link getImageBuild} looks a build up by id; the handle's
|
|
2051
2059
|
* `refresh`, `wait` and `cancel` read, wait for and cancel it.
|
|
2052
2060
|
*
|
|
2053
|
-
* **CAS only.** Everything here addresses
|
|
2054
|
-
* (`createSandboxImage`
|
|
2055
|
-
* snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2061
|
+
* **CAS images only.** Everything here addresses a CAS image build. Legacy
|
|
2062
|
+
* images (`createSandboxImage` with `cas: false`, `sandbox_template_` ids,
|
|
2063
|
+
* `.tlsnap` snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2056
2064
|
* reference passed as a build id is refused locally, before any request, and
|
|
2057
2065
|
* the legacy functions in `sandbox-image.ts` keep their own requests,
|
|
2058
2066
|
* results, errors and interruption behavior.
|
|
@@ -2143,7 +2151,7 @@ interface ImageBuildErrorDetails {
|
|
|
2143
2151
|
waitedSecs?: number | null;
|
|
2144
2152
|
status?: number | null;
|
|
2145
2153
|
}
|
|
2146
|
-
/**
|
|
2154
|
+
/** A CAS image build operation failed. `code` is stable. */
|
|
2147
2155
|
declare class ImageBuildError extends Error {
|
|
2148
2156
|
readonly code: ImageBuildErrorCode;
|
|
2149
2157
|
readonly buildId?: string;
|
|
@@ -2199,14 +2207,14 @@ declare class ImageBuildInterruptedError extends ImageBuildError {
|
|
|
2199
2207
|
constructor(details: ImageBuildErrorDetails);
|
|
2200
2208
|
}
|
|
2201
2209
|
/**
|
|
2202
|
-
* The published image of a succeeded build, in the sandbox-template
|
|
2203
|
-
* the merged catalog answers (derived by the core from the
|
|
2204
|
-
* trimmed record): one image representation for
|
|
2205
|
-
* `listSandboxImages` and build results.
|
|
2210
|
+
* The published CAS image of a succeeded build, in the sandbox-template
|
|
2211
|
+
* shape the merged catalog answers (derived by the core from the CAS image
|
|
2212
|
+
* registry's trimmed record): one image representation for
|
|
2213
|
+
* `findSandboxImageByName`, `listSandboxImages` and build results.
|
|
2206
2214
|
*/
|
|
2207
2215
|
type ImageBuildResult = SandboxTemplate;
|
|
2208
2216
|
/**
|
|
2209
|
-
* One build or import as the
|
|
2217
|
+
* One CAS image build or import as the service reports it (the twelve-field
|
|
2210
2218
|
* `BuildInfo`; the service exposes no cleanup state, phase deadline,
|
|
2211
2219
|
* content digest or upload capability on a build).
|
|
2212
2220
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-
|
|
2
|
-
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E 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, I as Image, l as CreateSandboxImageDeps, F as FileSystem } from './sandbox-image-C2GTVnx3.js';
|
|
2
|
+
export { m as ApplicationBuildImageResult, n as CreateApplicationBuildImageRequest, o as CreateSandboxImageOptions, p as ImageBuildOperation, q as ImageBuildOperationType, q as ImageBuildOperationTypeValue, r as ImageOptions, s as ImportSandboxImageOptions, t as RequestErrorInfo, u as SandboxImageSource, v as SecretsPagination, w as createSandboxImage, x as deleteSandboxImage, y as dockerfileContent, z as findSandboxImageByName, D as importSandboxImage, E as listSandboxImages } from './sandbox-image-C2GTVnx3.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-DYBXCTNC.js';
|
|
4
4
|
|
|
5
5
|
/** An SDK result paired with its server-side W3C trace ID. */
|
|
6
6
|
type Traced<T> = T & {
|
|
@@ -89,6 +89,7 @@ interface NativeSandboxClient {
|
|
|
89
89
|
createSnapshot(sandboxId: string, snapshotType?: string | null): Promise<TracedJson>;
|
|
90
90
|
getSnapshot(snapshotId: string): Promise<TracedJson>;
|
|
91
91
|
listSnapshots(): Promise<TracedJson>;
|
|
92
|
+
listSandboxSnapshots(sandboxId: string): Promise<TracedJson>;
|
|
92
93
|
deleteSnapshot(snapshotId: string): Promise<string>;
|
|
93
94
|
createPool(requestJson: string): Promise<TracedJson>;
|
|
94
95
|
getPool(poolId: string): Promise<TracedJson>;
|
|
@@ -1629,6 +1630,11 @@ declare class SandboxClient {
|
|
|
1629
1630
|
getSnapshot(snapshotId: string): Promise<Traced<SnapshotInfo>>;
|
|
1630
1631
|
/** List all snapshots in the namespace. */
|
|
1631
1632
|
listSnapshots(): Promise<Traced<SnapshotInfo[]>>;
|
|
1633
|
+
/**
|
|
1634
|
+
* List snapshots taken from one sandbox (its ID or name), from the
|
|
1635
|
+
* sandbox's own listing rather than the whole namespace's.
|
|
1636
|
+
*/
|
|
1637
|
+
listSandboxSnapshots(sandboxId: string): Promise<Traced<SnapshotInfo[]>>;
|
|
1632
1638
|
/** Delete a snapshot by ID. */
|
|
1633
1639
|
deleteSnapshot(snapshotId: string): Promise<void>;
|
|
1634
1640
|
/**
|
|
@@ -1693,19 +1699,21 @@ declare class CloudClient {
|
|
|
1693
1699
|
upsertApplication(manifest: ApplicationManifest, codeZip: BinaryPayload, upgradeRunningRequests?: boolean): Promise<void>;
|
|
1694
1700
|
deleteApplication(applicationName: string): Promise<void>;
|
|
1695
1701
|
/**
|
|
1696
|
-
* Delete a registered sandbox image by name or id through the
|
|
1697
|
-
* catalog, with this client's credentials: an `image_` id or a name
|
|
1698
|
-
*
|
|
1699
|
-
* name registered only in the
|
|
1702
|
+
* Delete a registered CAS or legacy sandbox image by name or id through the
|
|
1703
|
+
* merged catalog, with this client's credentials: an `image_` id or a name
|
|
1704
|
+
* the CAS image registry knows deletes a CAS image, a `sandbox_template_` id
|
|
1705
|
+
* or a name registered only in the legacy image registry deletes a legacy
|
|
1706
|
+
* image.
|
|
1707
|
+
* A name is deleted from both the CAS and the legacy image registries.
|
|
1700
1708
|
* Rejects when neither catalog knows the reference. The same semantics
|
|
1701
1709
|
* and accepted differences as the module-level `deleteSandboxImage`.
|
|
1702
1710
|
*/
|
|
1703
1711
|
deleteSandboxImage(imageName: string): Promise<void>;
|
|
1704
1712
|
/**
|
|
1705
|
-
* Look up a registered sandbox image by name or id through
|
|
1706
|
-
* catalog, with this client's credentials. Returns the image in
|
|
1707
|
-
* sandbox-template shape, or `null` when neither the
|
|
1708
|
-
*
|
|
1713
|
+
* Look up a registered CAS or legacy sandbox image by name or id through
|
|
1714
|
+
* the merged catalog, with this client's credentials. Returns the image in
|
|
1715
|
+
* the sandbox-template shape, or `null` when neither the CAS nor the legacy
|
|
1716
|
+
* image registry knows the reference. An explicit organization/project
|
|
1709
1717
|
* scope (the client's, or the call's override) addresses that project's
|
|
1710
1718
|
* routes directly, as before; without one the key's own scope applies.
|
|
1711
1719
|
*/
|
|
@@ -2041,18 +2049,18 @@ declare class RepositoryClient {
|
|
|
2041
2049
|
}
|
|
2042
2050
|
|
|
2043
2051
|
/**
|
|
2044
|
-
*
|
|
2052
|
+
* Build operations for CAS sandbox images.
|
|
2045
2053
|
*
|
|
2046
|
-
* A CAS (content-addressed streaming) image is built or imported by
|
|
2047
|
-
*
|
|
2054
|
+
* A CAS (content-addressed streaming) image is built or imported by a *build
|
|
2055
|
+
* operation*. This module exposes that operation directly:
|
|
2048
2056
|
* {@link startImageBuild} / {@link startImageImport} admit a build (and upload
|
|
2049
2057
|
* and seal its context) and return an {@link ImageBuildHandle} without
|
|
2050
2058
|
* waiting; {@link getImageBuild} looks a build up by id; the handle's
|
|
2051
2059
|
* `refresh`, `wait` and `cancel` read, wait for and cancel it.
|
|
2052
2060
|
*
|
|
2053
|
-
* **CAS only.** Everything here addresses
|
|
2054
|
-
* (`createSandboxImage`
|
|
2055
|
-
* snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2061
|
+
* **CAS images only.** Everything here addresses a CAS image build. Legacy
|
|
2062
|
+
* images (`createSandboxImage` with `cas: false`, `sandbox_template_` ids,
|
|
2063
|
+
* `.tlsnap` snapshots) have no build operation: a `sandbox_template_` or `image_`
|
|
2056
2064
|
* reference passed as a build id is refused locally, before any request, and
|
|
2057
2065
|
* the legacy functions in `sandbox-image.ts` keep their own requests,
|
|
2058
2066
|
* results, errors and interruption behavior.
|
|
@@ -2143,7 +2151,7 @@ interface ImageBuildErrorDetails {
|
|
|
2143
2151
|
waitedSecs?: number | null;
|
|
2144
2152
|
status?: number | null;
|
|
2145
2153
|
}
|
|
2146
|
-
/**
|
|
2154
|
+
/** A CAS image build operation failed. `code` is stable. */
|
|
2147
2155
|
declare class ImageBuildError extends Error {
|
|
2148
2156
|
readonly code: ImageBuildErrorCode;
|
|
2149
2157
|
readonly buildId?: string;
|
|
@@ -2199,14 +2207,14 @@ declare class ImageBuildInterruptedError extends ImageBuildError {
|
|
|
2199
2207
|
constructor(details: ImageBuildErrorDetails);
|
|
2200
2208
|
}
|
|
2201
2209
|
/**
|
|
2202
|
-
* The published image of a succeeded build, in the sandbox-template
|
|
2203
|
-
* the merged catalog answers (derived by the core from the
|
|
2204
|
-
* trimmed record): one image representation for
|
|
2205
|
-
* `listSandboxImages` and build results.
|
|
2210
|
+
* The published CAS image of a succeeded build, in the sandbox-template
|
|
2211
|
+
* shape the merged catalog answers (derived by the core from the CAS image
|
|
2212
|
+
* registry's trimmed record): one image representation for
|
|
2213
|
+
* `findSandboxImageByName`, `listSandboxImages` and build results.
|
|
2206
2214
|
*/
|
|
2207
2215
|
type ImageBuildResult = SandboxTemplate;
|
|
2208
2216
|
/**
|
|
2209
|
-
* One build or import as the
|
|
2217
|
+
* One CAS image build or import as the service reports it (the twelve-field
|
|
2210
2218
|
* `BuildInfo`; the service exposes no cleanup state, phase deadline,
|
|
2211
2219
|
* content digest or upload capability on a build).
|
|
2212
2220
|
*/
|