@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 44 lines 1.17 KB
Raw
1 /**
2 * Node.js layers for Effect's `Path` service.
3 *
4 * This module provides the default, POSIX, and Windows variants of the
5 * platform-independent `Path` service by reusing the shared Node path
6 * implementation. The provided path services include Node file URL conversion
7 * behavior.
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 * Provides the default Node `Path` service using the platform's `node:path`
18 * implementation.
19 *
20 * @stability unstable
21 * @category layers
22 * @since 4.0.0
23 */
24 export const layer: Layer.Layer<Path> = NodePath.layer
25
26 /**
27 * Provides the `Path` service using Node's POSIX path implementation,
28 * regardless of the host platform.
29 *
30 * @stability unstable
31 * @category layers
32 * @since 4.0.0
33 */
34 export const layerPosix: Layer.Layer<Path> = NodePath.layerPosix
35
36 /**
37 * Provides the `Path` service using Node's Windows path implementation,
38 * regardless of the host platform.
39 *
40 * @stability unstable
41 * @category layers
42 * @since 4.0.0
43 */
44 export const layerWin32: Layer.Layer<Path> = NodePath.layerWin32