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

main
ts 24 lines 755 Bytes
Raw
1 /**
2 * Process stdio for Bun applications.
3 *
4 * This module provides the Bun layer for Effect's `Stdio` service by using the
5 * shared Node stdio implementation. Arguments come from `process.argv`, input
6 * is read from `process.stdin`, and output and error output write to
7 * `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