De-dupe hashing code.

This commit is contained in:
Christian Gunderman
2026-02-02 23:56:40 -08:00
parent 849b3b255c
commit 3dce0fe6e5
4 changed files with 17 additions and 4 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ import {
AcknowledgedAgentsService,
} from '@google/gemini-cli-core';
import fs from 'node:fs';
import crypto from 'node:crypto';
import * as pty from '@lydell/node-pty';
import stripAnsi from 'strip-ansi';
import * as os from 'node:os';
@@ -370,7 +369,7 @@ export class TestRig {
try {
const service = new AcknowledgedAgentsService();
for (const [name, content] of Object.entries(agents)) {
const hash = crypto.createHash('sha256').update(content).digest('hex');
const hash = AcknowledgedAgentsService.computeHash(content);
await service.acknowledge(projectRoot, name, hash);
}
} finally {