fix(server): apply plugin pty environment (#32296)

This commit is contained in:
Shoubhit Dash
2026-06-14 13:17:48 +02:00
committed by GitHub
parent 8cc2276dba
commit 7ad68f8150
8 changed files with 135 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
export * as PtyEnvironment from "./pty-environment"
import { Context, Effect, Layer } from "effect"
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 defaultLayer = Layer.succeed(
Service,
Service.of({
get: () => Effect.succeed({}),
}),
)