11 lines
369 B
TypeScript
11 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,
|
|
})
|