mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
20 lines
587 B
TypeScript
20 lines
587 B
TypeScript
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: [] })
|