File size: 587 Bytes
89a2873 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | export * as PtyEnvironment from "./pty-environment"
import { Context, Effect, Layer } from "effect"
import { makeGlobalNode } from "@opencode-ai/core/effect/app-node"
export interface Interface {
readonly get: (input: { directory: string; cwd: string }) => Effect.Effect<Record<string, string>>
}
export class Service extends Context.Service<Service, Interface>()("@opencode/ServerPtyEnvironment") {}
export const layer = Layer.succeed(
Service,
Service.of({
get: () => Effect.succeed({}),
}),
)
export const node = makeGlobalNode({ service: Service, layer, deps: [] })
|