Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.

Commit 680f80a

Browse files
thdxrsdeonvacation
authored andcommitted
refactor: remove lazy cross-spawn runtime (anomalyco#24305)
1 parent dd0c827 commit 680f80a

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

packages/opencode/src/effect/cross-spawn-spawner.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,4 @@ export const layer: Layer.Layer<ChildProcessSpawner, never, FileSystem.FileSyste
489489

490490
export const defaultLayer = layer.pipe(Layer.provide(NodeFileSystem.layer), Layer.provide(NodePath.layer))
491491

492-
import { lazy } from "@/util/lazy"
493-
494-
const rt = lazy(async () => {
495-
// Dynamic import to avoid circular dep: cross-spawn-spawner → run-service → Instance → project → cross-spawn-spawner
496-
const { makeRuntime } = await import("@/effect/run-service")
497-
return makeRuntime(ChildProcessSpawner, defaultLayer)
498-
})
499-
500-
type RT = Awaited<ReturnType<typeof rt>>
501-
export const runPromiseExit: RT["runPromiseExit"] = async (...args) => (await rt()).runPromiseExit(...(args as [any]))
492+
export * as CrossSpawnSpawner from "./cross-spawn-spawner"

0 commit comments

Comments
 (0)