objective-digest.ts 245 B

123456
  1. import { createHash } from 'node:crypto';
  2. /** Stable full SHA-256 identity for one exact Goal objective. */
  3. export function digestThreadGoalObjective(objective: string): string {
  4. return createHash('sha256').update(objective).digest('hex');
  5. }