mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 05:59:50 +00:00
refactor(plugin): return Effect from ToolContext.ask (#21986)
This commit is contained in:
parent
c92c462148
commit
d84cc33742
4 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { z } from "zod"
|
||||
import { Effect } from "effect"
|
||||
|
||||
export type ToolContext = {
|
||||
sessionID: string
|
||||
|
|
@ -16,7 +17,7 @@ export type ToolContext = {
|
|||
worktree: string
|
||||
abort: AbortSignal
|
||||
metadata(input: { title?: string; metadata?: { [key: string]: any } }): void
|
||||
ask(input: AskInput): Promise<void>
|
||||
ask(input: AskInput): Effect.Effect<void>
|
||||
}
|
||||
|
||||
type AskInput = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue