12 lines
431 B
TypeScript
12 lines
431 B
TypeScript
import { Context } from "effect"
|
|
import type { InstanceContext } from "@/project/instance-context"
|
|
import type { WorkspaceID } from "@/control-plane/schema"
|
|
|
|
export const InstanceRef = Context.Reference<InstanceContext | undefined>("~opencode/InstanceRef", {
|
|
defaultValue: () => undefined,
|
|
})
|
|
|
|
export const WorkspaceRef = Context.Reference<WorkspaceID | undefined>("~opencode/WorkspaceRef", {
|
|
defaultValue: () => undefined,
|
|
})
|