2026-03-31 23:14:32 +00:00
|
|
|
import { ServiceMap } from "effect"
|
|
|
|
|
import type { InstanceContext } from "@/project/instance"
|
|
|
|
|
|
|
|
|
|
export const InstanceRef = ServiceMap.Reference<InstanceContext | undefined>("~opencode/InstanceRef", {
|
|
|
|
|
defaultValue: () => undefined,
|
|
|
|
|
})
|
2026-04-10 14:47:27 +00:00
|
|
|
|
|
|
|
|
export const WorkspaceRef = ServiceMap.Reference<string | undefined>("~opencode/WorkspaceRef", {
|
|
|
|
|
defaultValue: () => undefined,
|
|
|
|
|
})
|