docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Utility module that packages local files, inline strings, and remote artifacts into deployable assets and archives for infrastructure deployments.
export type AssetSource =
| { kind: "file"; path: string }
| { kind: "inline"; data: string }
| { kind: "remote"; uri: string };
export type PackagedAsset = unknown;
export type PackagedArchive = unknown;
/**
* Wraps a file path as a deployable asset understood by the runtime.
*/
export function fromFile(path: string): PackagedAsset;
/**
* Wraps inline string data as a deployable asset without touching the filesystem.
*/
export function fromInline(content: string): PackagedAsset;
/**
* Wraps an HTTP(S) URL as a deployable remote artifact.
*/
export function fromRemote(uri: string): PackagedAsset;
/**
* Builds an archive from named asset sources and optionally includes every file under includeDir.
* Entries keep their provided keys as paths inside the archive.
*/
export function buildArchive(
entries: Record<string, AssetSource>,
includeDir?: string
): PackagedArchive;Provides deployable asset and archive abstractions for packaging files, inline data, and remote blobs without manual encoding.