cloudaxe-opencode/packages/opencode/src/effect/instance-ref.ts

7 lines
235 B
TypeScript
Raw Normal View History

import { ServiceMap } from "effect"
import type { InstanceContext } from "@/project/instance"
export const InstanceRef = ServiceMap.Reference<InstanceContext | undefined>("~opencode/InstanceRef", {
defaultValue: () => undefined,
})