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:
Mahima Shanware
2026-02-24 00:29:16 +00:00
parent 5cb555dd05
commit 0d62cdb1cc

View File

@@ -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';