mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-21 11:19:27 -10:00
18 lines
639 B
TypeScript
18 lines
639 B
TypeScript
import type { SkillApi } from "@opencode/client/effect/api"
|
|
import { Skill } from "@opencode/schema/skill"
|
|
import type { Effect, Types } from "effect"
|
|
import type { Transform } from "./registration.js"
|
|
|
|
export interface SkillEditor {
|
|
list(): readonly Types.DeepMutable<Skill.Info>[]
|
|
get(id: string): Types.DeepMutable<Skill.Info> | undefined
|
|
add(skill: Skill.Info): void
|
|
update(id: string, update: (skill: Types.DeepMutable<Skill.Info>) => void): void
|
|
remove(id: string): void
|
|
}
|
|
|
|
export interface SkillDomain extends SkillApi<unknown> {
|
|
readonly transform: Transform<SkillEditor>
|
|
readonly reload: () => Effect.Effect<void>
|
|
}
|