diff options
| author | Kit Langton <[email protected]> | 2026-04-10 23:50:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-10 23:50:50 -0400 |
| commit | d84cc337428d3825caba14f97ec463c7781b5c77 (patch) | |
| tree | 477b354a5b5179ece35c8b6e6e203825a3f8f3ff /packages/plugin/src/tool.ts | |
| parent | c92c462148a48a9e9496735f7754a69e4a695b31 (diff) | |
| download | opencode-d84cc337428d3825caba14f97ec463c7781b5c77.tar.gz opencode-d84cc337428d3825caba14f97ec463c7781b5c77.zip | |
refactor(plugin): return Effect from ToolContext.ask (#21986)
Diffstat (limited to 'packages/plugin/src/tool.ts')
| -rw-r--r-- | packages/plugin/src/tool.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/plugin/src/tool.ts b/packages/plugin/src/tool.ts index 23aa512d9..b568d0371 100644 --- a/packages/plugin/src/tool.ts +++ b/packages/plugin/src/tool.ts @@ -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 = { |
