mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
fix(prompts): resolve build and test errors in prompts.test.ts
- Fixes ESLint `no-explicit-any` errors by importing and using `AnyDeclarativeTool` from `tools.ts` instead of the unexported type in `tool-registry.ts`. - Removes unused `nonReadOnlyMcpTool` local variable. - Updates mock setups to correctly use `getActiveTools` for Plan Mode tool assertions, ensuring both the build and test suites pass.
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
} from '../config/models.js';
|
||||
import { ApprovalMode } from '../policy/types.js';
|
||||
import { DiscoveredMCPTool } from '../tools/mcp-tool.js';
|
||||
import type { AnyDeclarativeTool } from '../tools/tool-registry.js';
|
||||
import type { AnyDeclarativeTool } from '../tools/tools.js';
|
||||
import type { CallableTool } from '@google/genai';
|
||||
import type { MessageBus } from '../confirmation-bus/message-bus.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user