chore: Fix types in tests 7/N.

This commit is contained in:
cpojer
2026-02-17 11:16:24 +09:00
parent 0aa28c71ca
commit ac38d51290
9 changed files with 36 additions and 34 deletions

View File

@@ -5,8 +5,8 @@ import type { PluginHookAfterToolCallEvent } from "../plugins/types.js";
import { normalizeTextForComparison } from "./pi-embedded-helpers.js";
import { isMessagingTool, isMessagingToolSendAction } from "./pi-embedded-messaging.js";
import type {
EmbeddedPiSubscribeContext,
ToolCallSummary,
ToolHandlerContext,
} from "./pi-embedded-subscribe.handlers.types.js";
import {
extractToolErrorMessage,
@@ -64,7 +64,7 @@ function extendExecMeta(toolName: string, args: unknown, meta?: string): string
}
export async function handleToolExecutionStart(
ctx: EmbeddedPiSubscribeContext,
ctx: ToolHandlerContext,
evt: AgentEvent & { toolName: string; toolCallId: string; args: unknown },
) {
// Flush pending block replies to preserve message boundaries before tool execution.
@@ -155,7 +155,7 @@ export async function handleToolExecutionStart(
}
export function handleToolExecutionUpdate(
ctx: EmbeddedPiSubscribeContext,
ctx: ToolHandlerContext,
evt: AgentEvent & {
toolName: string;
toolCallId: string;
@@ -187,7 +187,7 @@ export function handleToolExecutionUpdate(
}
export async function handleToolExecutionEnd(
ctx: EmbeddedPiSubscribeContext,
ctx: ToolHandlerContext,
evt: AgentEvent & {
toolName: string;
toolCallId: string;