pty-environment.ts 452 B

12345678910111213141516
  1. export * as PtyEnvironment from "./pty-environment"
  2. import { Context, Effect, Layer } from "effect"
  3. export interface Interface {
  4. readonly get: (input: { directory: string; cwd: string }) => Effect.Effect<Record<string, string>>
  5. }
  6. export class Service extends Context.Service<Service, Interface>()("@opencode/ServerPtyEnvironment") {}
  7. export const defaultLayer = Layer.succeed(
  8. Service,
  9. Service.of({
  10. get: () => Effect.succeed({}),
  11. }),
  12. )