feat(core): add opencode integration (#33555)
This commit is contained in:
parent
c17b9557f1
commit
cf80b5c470
26 changed files with 1061 additions and 439 deletions
|
|
@ -1,14 +1,9 @@
|
|||
import type { SkillV2Info } from "@opencode-ai/sdk/v2/types"
|
||||
import type { SkillV2Source } from "@opencode-ai/sdk/v2/types"
|
||||
import type { Hooks } from "./registration.js"
|
||||
|
||||
export type SkillSource =
|
||||
| { readonly type: "directory"; readonly path: string }
|
||||
| { readonly type: "url"; readonly url: string }
|
||||
| { readonly type: "embedded"; readonly skill: SkillV2Info }
|
||||
|
||||
export interface SkillDraft {
|
||||
source(source: SkillSource): void
|
||||
list(): readonly SkillSource[]
|
||||
source(source: SkillV2Source): void
|
||||
list(): readonly SkillV2Source[]
|
||||
}
|
||||
|
||||
export type SkillHooks = Hooks<{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue