cloudaxe-opencode/packages/opencode/src/effect/instance-ref.ts
James Long 165481813a events
2026-04-09 13:24:43 -04:00

10 lines
369 B
TypeScript

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