feat(plugin): add v2 effect host (#33111)
This commit is contained in:
parent
7a9337da8a
commit
c780d7cee7
139 changed files with 3740 additions and 1943 deletions
13
packages/plugin/src/v2/effect/reference.ts
Normal file
13
packages/plugin/src/v2/effect/reference.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import type { ReferenceGitSource, ReferenceInfo, ReferenceLocalSource } from "@opencode-ai/sdk/v2/types"
|
||||
import type { Effect } from "effect"
|
||||
import type { Transformable } from "./registration.js"
|
||||
|
||||
export interface ReferenceDraft {
|
||||
add(name: string, source: ReferenceLocalSource | ReferenceGitSource): void
|
||||
remove(name: string): void
|
||||
list(): readonly (readonly [string, ReferenceLocalSource | ReferenceGitSource])[]
|
||||
}
|
||||
|
||||
export interface Reference extends Transformable<ReferenceDraft> {
|
||||
list(): Effect.Effect<ReferenceInfo[]>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue