Skip to content

Commit 8cd1cd8

Browse files
donjorrsi-pr-agent
authored andcommitted
fix(upstream-fixes): fork code calls the Effect 4.0.4 randomUUIDv4 function
Upstream `cb65643b076` (Effect 4.0.4) turned `Crypto.randomUUIDv4` from an Effect into a function; fork call sites now invoke it. Fork-Domain: upstream-fixes Fork-Tier: bugfix Fork-Upstreamable: no
1 parent 7c7faf7 commit 8cd1cd8

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎apps/server/src/git/CheckoutHeadFollow.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const make = Effect.gen(function* () {
7070
const watchDirectory = yield* CheckoutDirectoryWatch;
7171
const path = yield* Path.Path;
7272
const crypto = yield* Crypto.Crypto;
73-
const newUuid = crypto.randomUUIDv4.pipe(Effect.orDie);
73+
const newUuid = crypto.randomUUIDv4().pipe(Effect.orDie);
7474
const watched = new Map<string, WatchedCheckout>();
7575
const markHeadChanged = (root: string, headChanged: boolean) => {
7676
const entry = watched.get(root);

‎apps/server/src/git/CheckoutMoveService.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const make = Effect.gen(function* () {
8989
>();
9090

9191
const pending = new Set<ThreadId>();
92-
const newUuid = crypto.randomUUIDv4.pipe(Effect.orDie);
92+
const newUuid = crypto.randomUUIDv4().pipe(Effect.orDie);
9393
const nowIso = DateTime.now.pipe(Effect.map(DateTime.formatIso));
9494
const realPath = (path: string) =>
9595
fileSystem.realPath(path).pipe(Effect.orElseSucceed(() => path));

‎apps/server/src/githubIssue/ThreadIssueSyncReactor.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const make = Effect.gen(function* () {
106106
yield* Effect.forEach(
107107
read.threads,
108108
(threadId) =>
109-
crypto.randomUUIDv4.pipe(
109+
crypto.randomUUIDv4().pipe(
110110
Effect.flatMap((uuid) =>
111111
engine.dispatch({
112112
type: "thread.issue-link.sync",

‎apps/server/src/mcp/external/ExternalMcpService.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ const make = Effect.gen(function* () {
554554

555555
const requests = makeExternalMcpRequests({
556556
threadManagement,
557-
newCommandId: crypto.randomUUIDv4.pipe(
557+
newCommandId: crypto.randomUUIDv4().pipe(
558558
Effect.map((uuid) => CommandId.make(`mcp:${uuid}`)),
559559
Effect.orDie,
560560
),

‎apps/server/src/mcp/toolkits/issues/handlers.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const make = Effect.gen(function* () {
157157
const crypto = yield* Crypto.Crypto;
158158

159159
const commandId = (tag: string, threadId: ThreadId) =>
160-
crypto.randomUUIDv4.pipe(
160+
crypto.randomUUIDv4().pipe(
161161
Effect.orDie,
162162
Effect.map((uuid) => CommandId.make(`server:${tag}:${threadId}:${uuid}`)),
163163
);

‎apps/server/src/serverRuntimeStartup.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const reconcileSetupScriptsFork = Effect.gen(function* () {
2222
continue;
2323
}
2424
yield* projectService.update({
25-
commandId: CommandId.make(`server:setup-script-refresh:${yield* crypto.randomUUIDv4}`),
25+
commandId: CommandId.make(`server:setup-script-refresh:${yield* crypto.randomUUIDv4()}`),
2626
projectId: project.id,
2727
scripts,
2828
});

‎packages/client-runtime/src/operations/checkoutMove.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const requestThreadCheckoutMove: (
2929
const requestId =
3030
input.requestId ??
3131
(yield* Crypto.Crypto.pipe(
32-
Effect.flatMap((crypto) => crypto.randomUUIDv4),
32+
Effect.flatMap((crypto) => crypto.randomUUIDv4()),
3333
Effect.orDie,
3434
Effect.map(CommandId.make),
3535
));

‎packages/client-runtime/src/operations/threadIssues.fork.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type UnlinkThreadIssueInput = ThreadIssueCommandInput<"thread.issue.unlink">;
2424

2525
const newCommandId = Effect.gen(function* () {
2626
const crypto = yield* Crypto.Crypto;
27-
return yield* crypto.randomUUIDv4.pipe(Effect.orDie, Effect.map(CommandId.make));
27+
return yield* crypto.randomUUIDv4().pipe(Effect.orDie, Effect.map(CommandId.make));
2828
});
2929

3030
export const linkThreadIssue = Effect.fn("EnvironmentCommands.linkThreadIssue")(function* (

0 commit comments

Comments
 (0)