[codex] Enforce canonical Node namespace imports (#3238)

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex authored and GitHub committed 2026-06-20 01:06:37 -07:00
1 parent db27502aff
commit 2fa37ec183
71 files changed
+1205 -952

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
// @effect-diagnostics nodeBuiltinImport:off - The CLI loopback OAuth callback is a Node HTTP boundary.
import { createServer } from "node:http";
import * as NodeHttp from "node:http";
import * as NodeHttpServer from "@effect/platform-node/NodeHttpServer";
import * as Clock from "effect/Clock";
@@ -206,7 +206,7 @@ export const make = Effect.gen(function* () {
disableLogger: true,
}).pipe(
Layer.provide(
NodeHttpServer.layer(createServer, {
NodeHttpServer.layer(NodeHttp.createServer, {
host: "127.0.0.1",
port: 34338,
disablePreemptiveShutdown: true,
+2 -2
View File
@@ -1,4 +1,4 @@
import { createPublicKey } from "node:crypto";
import * as NodeCrypto from "node:crypto";
import {
AuthRelayReadScope,
AuthRelayWriteScope,
@@ -152,7 +152,7 @@ function validateCloudMintPublicKey(
publicKey: string,
): Effect.Effect<void, EnvironmentHttpBadRequestError> {
return Effect.try({
try: () => createPublicKey(publicKey.replace(/\\n/g, "\n")),
try: () => NodeCrypto.createPublicKey(publicKey.replace(/\\n/g, "\n")),
catch: () =>
new EnvironmentHttpBadRequestError({
message: "Cloud mint public key must be a valid Ed25519 public key.",