refactor(plugin): return Effect from ToolContext.ask (#21986)

This commit is contained in:
Kit Langton 2026-04-10 23:50:50 -04:00 committed by GitHub
parent c92c462148
commit d84cc33742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 3 deletions

View file

@ -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 = {