2026-04-11 03:06:28 +00:00
|
|
|
import { Context } from "effect"
|
2026-05-15 10:29:56 +00:00
|
|
|
import type { InstanceContext } from "@/project/instance-context"
|
2026-04-16 16:24:40 +00:00
|
|
|
import type { WorkspaceID } from "@/control-plane/schema"
|
2026-03-31 23:14:32 +00:00
|
|
|
|
2026-04-11 03:06:28 +00:00
|
|
|
export const InstanceRef = Context.Reference<InstanceContext | undefined>("~opencode/InstanceRef", {
|
2026-03-31 23:14:32 +00:00
|
|
|
defaultValue: () => undefined,
|
|
|
|
|
})
|
2026-04-10 14:47:27 +00:00
|
|
|
|
2026-04-16 16:24:40 +00:00
|
|
|
export const WorkspaceRef = Context.Reference<WorkspaceID | undefined>("~opencode/WorkspaceRef", {
|
2026-04-10 14:47:27 +00:00
|
|
|
defaultValue: () => undefined,
|
|
|
|
|
})
|