The best way to control Claude Code, Codex and more from any computer or phone
| 1 | /** |
| 2 | * Bun-backed layers for Effect's {@link Path} service. |
| 3 | * |
| 4 | * This module provides the `Path` service for Bun programs by reusing the |
| 5 | * shared Node-compatible path implementation. Provide one of these layers when |
| 6 | * Bun code should receive path operations from the Effect environment instead |
| 7 | * of importing runtime path helpers directly. |
| 8 | * |
| 9 | * @stability unstable |
| 10 | * @since 4.0.0 |
| 11 | */ |
| 12 | import * as NodePath from "@effect/platform-node-shared/NodePath" |
| 13 | import type * as Layer from "effect/Layer" |
| 14 | import type { Path } from "effect/Path" |
| 15 | |
| 16 | /** |
| 17 | * Layer that provides the default `Path` service for Bun using the shared Node path implementation. |
| 18 | * |
| 19 | * @stability unstable |
| 20 | * @category layers |
| 21 | * @since 4.0.0 |
| 22 | */ |
| 23 | export const layer: Layer.Layer<Path> = NodePath.layer |
| 24 | |
| 25 | /** |
| 26 | * Layer that provides the POSIX `Path` service for Bun using the shared Node path implementation. |
| 27 | * |
| 28 | * @stability unstable |
| 29 | * @category layers |
| 30 | * @since 4.0.0 |
| 31 | */ |
| 32 | export const layerPosix: Layer.Layer<Path> = NodePath.layerPosix |
| 33 | |
| 34 | /** |
| 35 | * Layer that provides the Win32 `Path` service for Bun using the shared Node path implementation. |
| 36 | * |
| 37 | * @stability unstable |
| 38 | * @category layers |
| 39 | * @since 4.0.0 |
| 40 | */ |
| 41 | export const layerWin32: Layer.Layer<Path> = NodePath.layerWin32 |