mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-21 21:29:28 -10:00
+7


![opencode-agent[bot]](/assets/img/avatar_default.png)



![opencode-agent[bot]](/assets/img/avatar_default.png)

41283933ff
Co-authored-by: Brendan Allan <[email protected]> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Affan Ali <[email protected]> Co-authored-by: affanali2k3 <[email protected]> Co-authored-by: Frank <[email protected]> Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> Co-authored-by: James Long <[email protected]> Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Jay V <[email protected]> Co-authored-by: Dax Raad <[email protected]> Co-authored-by: Aarav Sareen <[email protected]> Co-authored-by: OpeOginni <[email protected]> Co-authored-by: Luke Parker <[email protected]> Co-authored-by: Ben Guthrie <[email protected]> Co-authored-by: Dax <[email protected]> Co-authored-by: Filip <[email protected]>
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: [] })
|