diff options
Diffstat (limited to 'packages/opencode/src/effect/instance-ref.ts')
| -rw-r--r-- | packages/opencode/src/effect/instance-ref.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/effect/instance-ref.ts b/packages/opencode/src/effect/instance-ref.ts index 07a510a4f..301316c77 100644 --- a/packages/opencode/src/effect/instance-ref.ts +++ b/packages/opencode/src/effect/instance-ref.ts @@ -1,10 +1,10 @@ -import { ServiceMap } from "effect" +import { Context } from "effect" import type { InstanceContext } from "@/project/instance" -export const InstanceRef = ServiceMap.Reference<InstanceContext | undefined>("~opencode/InstanceRef", { +export const InstanceRef = Context.Reference<InstanceContext | undefined>("~opencode/InstanceRef", { defaultValue: () => undefined, }) -export const WorkspaceRef = ServiceMap.Reference<string | undefined>("~opencode/WorkspaceRef", { +export const WorkspaceRef = Context.Reference<string | undefined>("~opencode/WorkspaceRef", { defaultValue: () => undefined, }) |
