refactor(opencode): tidy deferred tool test fixtures
This commit is contained in:
parent
4ce8c1dd4d
commit
8e84d9663b
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,6 @@ import { ToolRegistry } from "@/tool/registry"
|
|||
import type { Context } from "@/tool/tool"
|
||||
import type { TaskPromptOps } from "@/tool/task"
|
||||
import { ModelV2 } from "@opencode-ai/core/model"
|
||||
import { ProviderV2 } from "@opencode-ai/core/provider"
|
||||
import { SessionV1 } from "@opencode-ai/core/v1/session"
|
||||
import { jsonSchema, tool, type Tool, type ToolExecutionOptions } from "ai"
|
||||
import { Effect } from "effect"
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ const promptOps = {
|
|||
const toolExecutionOptions = {
|
||||
toolCallId: "call_deferred",
|
||||
abortSignal: new AbortController().signal,
|
||||
} as ToolExecutionOptions
|
||||
messages: [],
|
||||
} satisfies ToolExecutionOptions
|
||||
|
||||
const makeIt = (input: { flags: Parameters<typeof RuntimeFlags.layer>[0]; queryDescription: string }) =>
|
||||
testEffect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue