fix: remove unused imports and params in pi-tools.hooks.test.ts

- Remove unused afterEach import
- Prefix unused params parameter with underscore
- Fixes lint errors from hook pipeline implementation
This commit is contained in:
dp-web4 2026-01-28 15:04:21 -08:00
parent e9951301b4
commit 1060664e7c

View File

@ -1,4 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { wrapToolWithHooks, type ToolHookContext } from "./pi-tools.hooks.js";
import type { AnyAgentTool } from "./pi-tools.types.js";
@ -22,7 +22,7 @@ function createMockTool(name: string, executeFn?: AnyAgentTool["execute"]): AnyA
schema: {} as AnyAgentTool["schema"],
execute:
executeFn ??
(async (_id: string, params: unknown) => {
(async (_id: string, _params: unknown) => {
return `result from ${name}`;
}),
};