2026-10-14 06:07:08 +08:00
|
|
|
export interface StaticTaskContext {
|
|
|
|
|
readonly version: 1;
|
|
|
|
|
readonly sourceSha: string;
|
|
|
|
|
readonly sourceClean: boolean;
|
|
|
|
|
readonly prHeadSha?: string;
|
|
|
|
|
readonly nodeVersion: string;
|
|
|
|
|
readonly npmVersion: string;
|
|
|
|
|
readonly turboVersion: string;
|
|
|
|
|
readonly platform: string;
|
|
|
|
|
readonly architecture: string;
|
|
|
|
|
readonly taskHashes: Readonly<Record<string, string>>;
|
|
|
|
|
}
|
|
|
|
|
export function parseStaticTaskContext(value: unknown): StaticTaskContext;
|
|
|
|
|
export function recordStaticTaskContext(options?: {
|
|
|
|
|
root?: string;
|
|
|
|
|
npmCli?: string;
|
|
|
|
|
outputDirectory?: string;
|
2026-10-21 03:29:31 +08:00
|
|
|
script?: string;
|
2026-10-14 06:07:08 +08:00
|
|
|
}): Promise<StaticTaskContext>;
|