feat(plugin): add namespaced hook API (#33416)

This commit is contained in:
Dax
2026-06-22 19:06:57 -04:00
committed by GitHub
parent dc468bdcfd
commit 909a1a6d78
150 changed files with 3286 additions and 3916 deletions
+4 -6
View File
@@ -1,6 +1,5 @@
import type { CommandV2Info } from "@opencode-ai/sdk/v2/types"
import type { Effect } from "effect"
import type { Transformable } from "./registration.js"
import type { Hooks } from "./registration.js"
export interface CommandDraft {
list(): readonly CommandV2Info[]
@@ -9,7 +8,6 @@ export interface CommandDraft {
remove(name: string): void
}
export interface Command extends Transformable<CommandDraft> {
get(name: string): Effect.Effect<CommandV2Info | undefined>
list(): Effect.Effect<CommandV2Info[]>
}
export type CommandHooks = Hooks<{
transform: CommandDraft
}>