@constal/sdk 4.0.1 → 4.1.0
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/package.json +1 -1
- package/publish/api.json +1 -1
- package/publish/index.d.ts +6 -1
package/package.json
CHANGED
package/publish/api.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -1749,6 +1749,7 @@ interface SandboxMutationResult {
|
|
|
1749
1749
|
interface SandboxImage {
|
|
1750
1750
|
readonly id: string;
|
|
1751
1751
|
readonly pool: SandboxPool;
|
|
1752
|
+
/** The cache key the image was created or resolved with; null when it has none, or when a handle from `SandboxPool.image` does not know it. */
|
|
1752
1753
|
readonly cacheKey: string | null;
|
|
1753
1754
|
delete(opts?: InvokeOpts): Promise<void>;
|
|
1754
1755
|
}
|
|
@@ -1792,7 +1793,11 @@ interface SandboxPool {
|
|
|
1792
1793
|
createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
|
|
1793
1794
|
/** Resolve an Agent-owned prepared image by its immutable environment digest. */
|
|
1794
1795
|
resolveImage(cacheKey: string, opts?: InvokeOpts): Promise<SandboxImage | null>;
|
|
1795
|
-
/**
|
|
1796
|
+
/** Address a pool-owned image recorded earlier, e.g. in a Fact. No invocation. The handle does not know the image's
|
|
1797
|
+
* cache key (`cacheKey` is null) and its delete() removes a setup-cache image too, so address only images the Agent recorded. */
|
|
1798
|
+
image(id: string): SandboxImage;
|
|
1799
|
+
/** Register a logical Agent/Session sandbox; provider compute is allocated by its first work operation. The pool refuses
|
|
1800
|
+
* an `image` while the Session's sandbox is live: delete that sandbox first to recreate it from an image. */
|
|
1796
1801
|
createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
|
|
1797
1802
|
}
|
|
1798
1803
|
|