mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-06 00:39:54 +00:00
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import type { SkillApi } from "@opencode-ai/client/promise/api"
|
|
import type { Skill } from "@opencode-ai/schema/skill"
|
|
import type { Transform } from "./registration.js"
|
|
|
|
export interface SkillDraft {
|
|
source(source: Skill.Source): void
|
|
list(): readonly Skill.Source[]
|
|
}
|
|
|
|
export interface SkillDomain extends SkillApi {
|
|
readonly transform: Transform<SkillDraft>
|
|
readonly reload: () => Promise<void>
|
|
}
|