Skip to content

Commit 98199ed

Browse files
committed
Fix lint errors - remove unused imports and fix test types
1 parent 2b0f956 commit 98199ed

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/components/Messages/ToolMessage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import type {
1313
BashToolResult,
1414
FileReadToolArgs,
1515
FileReadToolResult,
16+
FileListToolArgs,
17+
FileListToolResult,
1618
FileEditInsertToolArgs,
1719
FileEditInsertToolResult,
1820
FileEditReplaceStringToolArgs,

src/services/tools/file_list.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ import * as fs from "fs/promises";
33
import * as path from "path";
44
import * as os from "os";
55
import { createFileListTool } from "./file_list";
6-
import type { FileListToolArgs, FileListToolResult } from "@/types/tools";
6+
import type { FileListToolResult } from "@/types/tools";
7+
import type { ToolCallOptions } from "ai";
8+
9+
// Mock ToolCallOptions for testing
10+
const mockToolCallOptions: ToolCallOptions = {
11+
toolCallId: "test-call-id",
12+
messages: [],
13+
};
714

815
describe("file_list tool", () => {
916
let tempDir: string;

0 commit comments

Comments
 (0)