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

main
ts 24 lines 787 Bytes
Raw
1 /**
2 * Node.js `Stdio` layer for the current process.
3 *
4 * The exported layer reuses the shared Node stdio implementation. It satisfies
5 * the platform-independent `Stdio` service by reading command-line arguments
6 * from `process.argv`, consuming input from `process.stdin`, and writing output
7 * streams to `process.stdout` and `process.stderr`.
8 *
9 * @stability unstable
10 * @since 4.0.0
11 */
12 import * as NodeStdio from "@effect/platform-node-shared/NodeStdio"
13 import type * as Layer from "effect/Layer"
14 import type { Stdio } from "effect/Stdio"
15
16 /**
17 * Provides the `Stdio` service backed by the current process arguments,
18 * stdin, stdout, and stderr streams.
19 *
20 * @stability unstable
21 * @category layers
22 * @since 4.0.0
23 */
24 export const layer: Layer.Layer<Stdio> = NodeStdio.layer