Fix build break (tool -> tools).

- Without this we'd get a TS1261 about the name "tool" only differeing from "Tool" (the class) by case.
This commit is contained in:
Taylor Mullen
2025-04-17 17:25:01 -04:00
parent ece8630c33
commit d970882428
13 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import * as Diff from 'diff';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { ToolCallConfirmationDetails, ToolConfirmationOutcome, ToolEditConfirmationDetails } from '../ui/types.js';
import { makeRelative, shortenPath } from '../utils/paths.js';
import { ReadFileTool } from './read-file.tool.js';

View File

@@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import fg from 'fast-glob';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { shortenPath, makeRelative } from '../utils/paths.js';
/**

View File

@@ -4,7 +4,7 @@ import path from 'path';
import { EOL } from 'os'; // Used for parsing grep output lines
import { spawn } from 'child_process'; // Used for git grep and system grep
import fastGlob from 'fast-glob'; // Used for JS fallback file searching
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { makeRelative, shortenPath } from '../utils/paths.js';

View File

@@ -1,6 +1,6 @@
import fs from 'fs';
import path from 'path';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { makeRelative, shortenPath } from '../utils/paths.js';

View File

@@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { makeRelative, shortenPath } from '../utils/paths.js';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
/**
* Parameters for the ReadFile tool

View File

@@ -3,7 +3,7 @@ import path from 'path';
import os from 'os';
import crypto from 'crypto';
import { promises as fs } from 'fs';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { ToolCallConfirmationDetails, ToolConfirmationOutcome, ToolExecuteConfirmationDetails } from '../ui/types.js'; // Adjust path as needed
import { BackgroundTerminalAnalyzer } from '../utils/BackgroundTerminalAnalyzer.js';

View File

@@ -1,5 +1,5 @@
import { ToolListUnion, FunctionDeclaration } from '@google/genai';
import { Tool } from './tool.js';
import { Tool } from './tools.js';
class ToolRegistry {
private tools: Map<string, Tool> = new Map();

View File

@@ -1,6 +1,6 @@
import fs from 'fs';
import path from 'path';
import { BaseTool, ToolResult } from './tool.js';
import { BaseTool, ToolResult } from './tools.js';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { makeRelative, shortenPath } from '../utils/paths.js';
import { ToolCallConfirmationDetails, ToolConfirmationOutcome, ToolEditConfirmationDetails } from '../ui/types.js';