Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
12345678910111213141516import type { ReferenceApi } from "@opencode/client/promise/api"import type { ReferenceGitSource, ReferenceLocalSource } from "@opencode/client"import type { Transform } from "./registration.js"
export interface ReferenceEditor { add(name: string, source: ReferenceLocalSource | ReferenceGitSource): void remove(name: string): void list(): readonly (readonly [string, ReferenceLocalSource | ReferenceGitSource])[] get(name: string): ReferenceLocalSource | ReferenceGitSource | undefined}
export interface ReferenceDomain extends ReferenceApi { readonly transform: Transform<ReferenceEditor> readonly reload: () => Promise<void>}