refactor: rename instance store service interface

This commit is contained in:
Kit Langton
2026-05-01 08:42:26 -04:00
parent f5398e7e1e
commit f1470c1a88
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -24,14 +24,14 @@ export interface LoadInput {
project?: Project.Info
}
export interface Store {
export interface Interface {
readonly load: (input: LoadInput) => Effect.Effect<InstanceContext>
readonly reload: (input: LoadInput) => Effect.Effect<InstanceContext>
readonly dispose: (ctx: InstanceContext) => Effect.Effect<void>
readonly disposeAll: () => Effect.Effect<void>
}
export class InstanceStore extends Context.Service<InstanceStore, Store>()("@opencode/InstanceStore") {}
export class InstanceStore extends Context.Service<InstanceStore, Interface>()("@opencode/InstanceStore") {}
export const instanceStoreLayer: Layer.Layer<InstanceStore, never, Project.Service> = Layer.effect(
InstanceStore,