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