Skip to content

ArtifactCache

ArtifactCache = object

Defined in: packages/app-system/src/fs/artifact-cache.ts:45

readonly root: string

Defined in: packages/app-system/src/fs/artifact-cache.ts:57

Absolute cache root.


readonly runRoot: string | null

Defined in: packages/app-system/src/fs/artifact-cache.ts:64

Absolute directory holding every lifetime: "run" artifact of this run, or null when no run id was given. Removing it is the owner’s job: the sweep has to work when a child crashed, which is exactly when something was left behind, so it cannot be driven by what the children report.

ensure(key, build, signal?): Promise<string>

Defined in: packages/app-system/src/fs/artifact-cache.ts:50

Returns the cached directory, or invokes build once to populate it. Safe against concurrent callers in other processes.

ArtifactKey

(directory, signal) => Promise<void>

AbortSignal

Promise<string>