mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 10:14:30 +00:00
HYPERFRAMES_RUN_ID (trimmed, 128-char cap) attaches as run_id to the generic cli_command / cli_command_result events, absent when unset, so an orchestrator setting it per design element can group a verify loop's invocations in analytics. check additionally emits one check_report event per invocation (including lint-short-circuited and failing runs): gate booleans, per-class error/warning counts, launch/seek/contrast phase timings, sample counts, ok and exit code. Timings stay internal; no command output changes.
13 lines
280 B
TypeScript
13 lines
280 B
TypeScript
let resolved = false;
|
|
let runId: string | undefined;
|
|
|
|
export function getRunId(): string | undefined {
|
|
if (!resolved) {
|
|
const value = process.env["HYPERFRAMES_RUN_ID"]?.trim().slice(0, 128);
|
|
runId = value ? value : undefined;
|
|
resolved = true;
|
|
}
|
|
|
|
return runId;
|
|
}
|