2026-03-18 01:04:16 +00:00
|
|
|
import { ServiceMap } from "effect";
|
|
|
|
|
import type { Project } from "@/project/project";
|
2026-03-16 17:59:11 +00:00
|
|
|
|
|
|
|
|
export declare namespace InstanceContext {
|
2026-03-18 01:04:16 +00:00
|
|
|
export interface Shape {
|
|
|
|
|
readonly directory: string;
|
|
|
|
|
readonly worktree: string;
|
|
|
|
|
readonly project: Project.Info;
|
|
|
|
|
}
|
2026-03-16 17:59:11 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-18 01:04:16 +00:00
|
|
|
export class InstanceContext extends ServiceMap.Service<
|
|
|
|
|
InstanceContext,
|
|
|
|
|
InstanceContext.Shape
|
|
|
|
|
>()("opencode/InstanceContext") {}
|