cloudaxe-opencode/packages/opencode/src/effect/instance-context.ts

15 lines
393 B
TypeScript
Raw Normal View History

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