The best way to control Claude Code, Codex and more from any computer or phone
fix(server): repair cutover test crypto import breaking main CI (#31630)
Yash Singh committed
Nov 5, 2026 at 12:58 UTC
b18434e647cf38e92b6e57262cebd741cfed4745
1 file changed
+4
-7
apps/server/src/orchestration-v2/legacy/LegacyV1Cutover.integration.test.ts
+4
-7
@@ -15,10 +15,9 @@ import {
15
type OrchestrationV2ThreadProjection,
16
} from "@t3tools/contracts";
17
import * as NodeSqliteClient from "@t3tools/shared/nodeSqliteClient";
18
-import * as Crypto from "effect/Crypto";
18
+import * as Digest from "effect/crypto/Digest";
19
import * as DateTime from "effect/DateTime";
20
import * as Effect from "effect/Effect";
21
-import * as Hex from "effect/encoding/Hex";
21
import * as FileSystem from "effect/FileSystem";
22
import * as Layer from "effect/Layer";
23
import * as Logger from "effect/Logger";
@@ -705,11 +704,9 @@ const makeCapturingLogger = (logs: CapturedLog[]) =>
704
705
const sha256File = Effect.fn("LegacyV1Cutover.sha256File")(function* (filePath: string) {
706
const fs = yield* FileSystem.FileSystem;
708
- const crypto = yield* Crypto.Crypto;
709
- return Hex.encode(
710
- yield* crypto.digest("SHA-256", yield* fs.readFile(filePath)).pipe(Effect.orDie),
711
- );
712
-}, Effect.provide(NodeCrypto.layer));
707
+ const digest = yield* Digest.Digest;
708
+ return yield* digest.digestHex(Digest.sha256, yield* fs.readFile(filePath));
709
+}, Effect.provide(NodeCrypto.layerDigest));
710
711
interface LegacyTableSnapshot {
712
readonly columns: ReadonlyArray<string>;