Files
KArtSell.Aegis/docs/Design/kbx-foundation-v60-status-canonical-contract-hardening/tests/e2e/helpers/kbxScenarioEvidence.ts
T
kjh2064 3f293d8aa8
deploy / deploy (push) Successful in 1m52s
deploy / notify (push) Successful in 1s
V13-FE-006: consolidate approved UI and contract hardening
2026-08-13 02:41:00 +09:00

18 lines
422 B
TypeScript

import { createHash, randomUUID } from 'node:crypto'
import { readFile } from 'node:fs/promises'
export type KbxScenarioEvidenceArtifact = {
type: string
path: string
sha256?: string
}
export async function sha256File(path: string) {
const bytes = await readFile(path)
return createHash('sha256').update(bytes).digest('hex')
}
export function createScenarioRunId() {
return `kbx-scenario-${randomUUID()}`
}