fix(plugin): ask in tools from plugins returns promise instead of effect (#28217)
This commit is contained in:
parent
a88b436eec
commit
12ae22378f
2 changed files with 6 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { z } from "zod"
|
||||
import { Effect } from "effect"
|
||||
|
||||
export type ToolContext = {
|
||||
sessionID: string
|
||||
|
|
@ -17,7 +16,7 @@ export type ToolContext = {
|
|||
worktree: string
|
||||
abort: AbortSignal
|
||||
metadata(input: { title?: string; metadata?: { [key: string]: any } }): void
|
||||
ask(input: AskInput): Effect.Effect<void>
|
||||
ask(input: AskInput): Promise<void>
|
||||
}
|
||||
|
||||
type AskInput = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue