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-05-31 01:08:38 +00:00
|
|
|
import type { WorkspaceV2 } from "@opencode-ai/core/workspace"
|
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-05-31 01:08:38 +00:00
|
|
|
export const WorkspaceRef = Context.Reference<WorkspaceV2.ID | undefined>("~opencode/WorkspaceRef", {
|
2026-04-10 14:47:27 +00:00
|
|
|
defaultValue: () => undefined,
|
|
|
|
|
})
|