File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/angular/cli/src/commands/mcp/tools Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 88
99import { glob , readFile } from 'node:fs/promises' ;
1010import path from 'node:path' ;
11- import type { SQLInputValue } from 'node:sqlite' ;
11+ import type { DatabaseSync , SQLInputValue } from 'node:sqlite' ;
1212import { z } from 'zod' ;
1313import { McpToolContext , declareTool } from './tool-registry' ;
1414
@@ -184,8 +184,7 @@ new or evolving features.
184184} ) ;
185185
186186async function createFindExampleHandler ( { exampleDatabasePath } : McpToolContext ) {
187- let db : import ( 'node:sqlite' ) . DatabaseSync | undefined ;
188- let queryStatement : import ( 'node:sqlite' ) . StatementSync | undefined ;
187+ let db : DatabaseSync | undefined ;
189188
190189 if ( process . env [ 'NG_MCP_EXAMPLES_DIR' ] ) {
191190 db = await setupRuntimeExamples ( process . env [ 'NG_MCP_EXAMPLES_DIR' ] ) ;
@@ -428,9 +427,7 @@ function parseFrontmatter(content: string): Record<string, unknown> {
428427 return data ;
429428}
430429
431- async function setupRuntimeExamples (
432- examplesPath : string ,
433- ) : Promise < import ( 'node:sqlite' ) . DatabaseSync > {
430+ async function setupRuntimeExamples ( examplesPath : string ) : Promise < DatabaseSync > {
434431 const { DatabaseSync } = await import ( 'node:sqlite' ) ;
435432 const db = new DatabaseSync ( ':memory:' ) ;
436433
You can’t perform that action at this time.
0 commit comments