summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
authorRichie Foreman <[email protected]>2025-08-13 16:17:38 -0400
committerGitHub <[email protected]>2025-08-13 20:17:38 +0000
commita90aeb3d8fd05fc6303ce9ef4e957c2e19cbe9c4 (patch)
tree78423cea4d8f3a3f44d0e182b46fdf0a4bc45de0 /packages/core/src
parent8fae227e8d53b962f8b7db3abff51906fad1d181 (diff)
chore(build/compiler): Enable a bunch of strict TS compiler options. (#6138)
Diffstat (limited to 'packages/core/src')
-rw-r--r--packages/core/src/core/coreToolScheduler.test.ts9
-rw-r--r--packages/core/src/mcp/oauth-provider.ts1
-rw-r--r--packages/core/src/test-utils/tools.ts2
-rw-r--r--packages/core/src/tools/edit.ts2
-rw-r--r--packages/core/src/tools/glob.ts2
-rw-r--r--packages/core/src/tools/grep.ts2
-rw-r--r--packages/core/src/tools/ls.ts2
-rw-r--r--packages/core/src/tools/mcp-tool.ts4
-rw-r--r--packages/core/src/tools/memoryTool.ts4
-rw-r--r--packages/core/src/tools/read-file.ts4
-rw-r--r--packages/core/src/tools/read-many-files.ts4
-rw-r--r--packages/core/src/tools/shell.ts6
-rw-r--r--packages/core/src/tools/tool-registry.ts4
-rw-r--r--packages/core/src/tools/tools.ts16
-rw-r--r--packages/core/src/tools/web-fetch.ts8
-rw-r--r--packages/core/src/tools/web-search.ts2
-rw-r--r--packages/core/src/tools/write-file.ts8
-rw-r--r--packages/core/src/utils/errorParsing.test.ts2
-rw-r--r--packages/core/src/utils/filesearch/fileSearch.ts2
-rw-r--r--packages/core/src/utils/filesearch/result-cache.test.ts7
-rw-r--r--packages/core/src/utils/filesearch/result-cache.ts5
-rw-r--r--packages/core/src/utils/memoryImportProcessor.test.ts40
-rw-r--r--packages/core/src/utils/memoryImportProcessor.ts2
23 files changed, 69 insertions, 69 deletions
diff --git a/packages/core/src/core/coreToolScheduler.test.ts b/packages/core/src/core/coreToolScheduler.test.ts
index df39c1dc..71b2d64c 100644
--- a/packages/core/src/core/coreToolScheduler.test.ts
+++ b/packages/core/src/core/coreToolScheduler.test.ts
@@ -9,7 +9,6 @@ import { describe, it, expect, vi } from 'vitest';
import {
CoreToolScheduler,
ToolCall,
- ValidatingToolCall,
convertToFunctionResponse,
} from './coreToolScheduler.js';
import {
@@ -54,7 +53,9 @@ class MockModifiableTool
};
}
- async shouldConfirmExecute(): Promise<ToolCallConfirmationDetails | false> {
+ override async shouldConfirmExecute(): Promise<
+ ToolCallConfirmationDetails | false
+ > {
if (this.shouldConfirm) {
return {
type: 'edit',
@@ -121,8 +122,6 @@ describe('CoreToolScheduler', () => {
abortController.abort();
await scheduler.schedule([request], abortController.signal);
- const _waitingCall = onToolCallsUpdate.mock
- .calls[1][0][0] as ValidatingToolCall;
const confirmationDetails = await mockTool.shouldConfirmExecute(
{},
abortController.signal,
@@ -394,7 +393,7 @@ describe('CoreToolScheduler edit cancellation', () => {
);
}
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
_params: Record<string, unknown>,
_abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {
diff --git a/packages/core/src/mcp/oauth-provider.ts b/packages/core/src/mcp/oauth-provider.ts
index c86478c6..eaec5c2e 100644
--- a/packages/core/src/mcp/oauth-provider.ts
+++ b/packages/core/src/mcp/oauth-provider.ts
@@ -91,7 +91,6 @@ export class MCPOAuthProvider {
private static readonly REDIRECT_PORT = 7777;
private static readonly REDIRECT_PATH = '/oauth/callback';
private static readonly HTTP_OK = 200;
- private static readonly HTTP_REDIRECT = 302;
/**
* Register a client dynamically with the OAuth server.
diff --git a/packages/core/src/test-utils/tools.ts b/packages/core/src/test-utils/tools.ts
index 7d917b6c..da642212 100644
--- a/packages/core/src/test-utils/tools.ts
+++ b/packages/core/src/test-utils/tools.ts
@@ -45,7 +45,7 @@ export class MockTool extends BaseTool<{ [key: string]: unknown }, ToolResult> {
);
}
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
_params: { [key: string]: unknown },
_abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {
diff --git a/packages/core/src/tools/edit.ts b/packages/core/src/tools/edit.ts
index 733c1bf8..8d90dfe4 100644
--- a/packages/core/src/tools/edit.ts
+++ b/packages/core/src/tools/edit.ts
@@ -471,7 +471,7 @@ Expectation for required parameters:
* @param params Parameters to validate
* @returns Error message string or null if valid
*/
- validateToolParams(params: EditToolParams): string | null {
+ override validateToolParams(params: EditToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/glob.ts b/packages/core/src/tools/glob.ts
index 77a7241f..65454232 100644
--- a/packages/core/src/tools/glob.ts
+++ b/packages/core/src/tools/glob.ts
@@ -281,7 +281,7 @@ export class GlobTool extends BaseDeclarativeTool<GlobToolParams, ToolResult> {
/**
* Validates the parameters for the tool.
*/
- validateToolParams(params: GlobToolParams): string | null {
+ override validateToolParams(params: GlobToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/grep.ts b/packages/core/src/tools/grep.ts
index 9d3d638a..4cac389f 100644
--- a/packages/core/src/tools/grep.ts
+++ b/packages/core/src/tools/grep.ts
@@ -614,7 +614,7 @@ export class GrepTool extends BaseDeclarativeTool<GrepToolParams, ToolResult> {
* @param params Parameters to validate
* @returns An error message string if invalid, null otherwise
*/
- validateToolParams(params: GrepToolParams): string | null {
+ override validateToolParams(params: GrepToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/ls.ts b/packages/core/src/tools/ls.ts
index 2618136a..918c0b2b 100644
--- a/packages/core/src/tools/ls.ts
+++ b/packages/core/src/tools/ls.ts
@@ -314,7 +314,7 @@ export class LSTool extends BaseDeclarativeTool<LSToolParams, ToolResult> {
* @param params Parameters to validate
* @returns An error message string if invalid, null otherwise
*/
- validateToolParams(params: LSToolParams): string | null {
+ override validateToolParams(params: LSToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/mcp-tool.ts b/packages/core/src/tools/mcp-tool.ts
index 01a8d75c..fbb104fd 100644
--- a/packages/core/src/tools/mcp-tool.ts
+++ b/packages/core/src/tools/mcp-tool.ts
@@ -70,7 +70,7 @@ class DiscoveredMCPToolInvocation extends BaseToolInvocation<
super(params);
}
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
_abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {
const serverAllowListKey = this.serverName;
@@ -135,7 +135,7 @@ export class DiscoveredMCPTool extends BaseDeclarativeTool<
readonly serverName: string,
readonly serverToolName: string,
description: string,
- readonly parameterSchema: unknown,
+ override readonly parameterSchema: unknown,
readonly timeout?: number,
readonly trust?: boolean,
nameOverride?: string,
diff --git a/packages/core/src/tools/memoryTool.ts b/packages/core/src/tools/memoryTool.ts
index a9d765c4..73282d60 100644
--- a/packages/core/src/tools/memoryTool.ts
+++ b/packages/core/src/tools/memoryTool.ts
@@ -180,7 +180,7 @@ class MemoryToolInvocation extends BaseToolInvocation<
return `in ${tildeifyPath(memoryFilePath)}`;
}
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
_abortSignal: AbortSignal,
): Promise<ToolEditConfirmationDetails | false> {
const memoryFilePath = getGlobalMemoryFilePath();
@@ -294,7 +294,7 @@ export class MemoryTool
);
}
- validateToolParams(params: SaveMemoryParams): string | null {
+ override validateToolParams(params: SaveMemoryParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/read-file.ts b/packages/core/src/tools/read-file.ts
index d10c73d1..f02db506 100644
--- a/packages/core/src/tools/read-file.ts
+++ b/packages/core/src/tools/read-file.ts
@@ -198,7 +198,9 @@ export class ReadFileTool extends BaseDeclarativeTool<
);
}
- protected validateToolParams(params: ReadFileToolParams): string | null {
+ protected override validateToolParams(
+ params: ReadFileToolParams,
+ ): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/read-many-files.ts b/packages/core/src/tools/read-many-files.ts
index e4e94799..aaf524c4 100644
--- a/packages/core/src/tools/read-many-files.ts
+++ b/packages/core/src/tools/read-many-files.ts
@@ -626,7 +626,9 @@ Use this tool when the user's query implies needing the content of several files
);
}
- protected validateToolParams(params: ReadManyFilesParams): string | null {
+ protected override validateToolParams(
+ params: ReadManyFilesParams,
+ ): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts
index 0cc727fb..5b01a82f 100644
--- a/packages/core/src/tools/shell.ts
+++ b/packages/core/src/tools/shell.ts
@@ -67,7 +67,7 @@ class ShellToolInvocation extends BaseToolInvocation<
return description;
}
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
_abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {
const command = stripShellWrapper(this.params.command);
@@ -343,7 +343,9 @@ export class ShellTool extends BaseDeclarativeTool<
);
}
- protected validateToolParams(params: ShellToolParams): string | null {
+ protected override validateToolParams(
+ params: ShellToolParams,
+ ): string | null {
const commandCheck = isCommandAllowed(params.command, this.config);
if (!commandCheck.allowed) {
if (!commandCheck.reason) {
diff --git a/packages/core/src/tools/tool-registry.ts b/packages/core/src/tools/tool-registry.ts
index b3625285..416ee99e 100644
--- a/packages/core/src/tools/tool-registry.ts
+++ b/packages/core/src/tools/tool-registry.ts
@@ -19,8 +19,8 @@ export class DiscoveredTool extends BaseTool<ToolParams, ToolResult> {
constructor(
private readonly config: Config,
name: string,
- readonly description: string,
- readonly parameterSchema: Record<string, unknown>,
+ override readonly description: string,
+ override readonly parameterSchema: Record<string, unknown>,
) {
const discoveryCmd = config.getToolDiscoveryCommand()!;
const callCommand = config.getToolCallCommand()!;
diff --git a/packages/core/src/tools/tools.ts b/packages/core/src/tools/tools.ts
index 3e7d0647..00f2a842 100644
--- a/packages/core/src/tools/tools.ts
+++ b/packages/core/src/tools/tools.ts
@@ -284,13 +284,13 @@ export abstract class BaseTool<
* @param parameterSchema JSON Schema defining the parameters
*/
constructor(
- readonly name: string,
- readonly displayName: string,
- readonly description: string,
- readonly kind: Kind,
- readonly parameterSchema: unknown,
- readonly isOutputMarkdown: boolean = true,
- readonly canUpdateOutput: boolean = false,
+ override readonly name: string,
+ override readonly displayName: string,
+ override readonly description: string,
+ override readonly kind: Kind,
+ override readonly parameterSchema: unknown,
+ override readonly isOutputMarkdown: boolean = true,
+ override readonly canUpdateOutput: boolean = false,
) {
super(
name,
@@ -320,7 +320,7 @@ export abstract class BaseTool<
* @returns An error message string if invalid, null otherwise
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
- validateToolParams(params: TParams): string | null {
+ override validateToolParams(params: TParams): string | null {
// Implementation would typically use a JSON Schema validator
// This is a placeholder that should be implemented by derived classes
return null;
diff --git a/packages/core/src/tools/web-fetch.ts b/packages/core/src/tools/web-fetch.ts
index 909fc548..7c80650b 100644
--- a/packages/core/src/tools/web-fetch.ts
+++ b/packages/core/src/tools/web-fetch.ts
@@ -143,7 +143,9 @@ ${textContent}
return `Processing URLs and instructions from prompt: "${displayPrompt}"`;
}
- async shouldConfirmExecute(): Promise<ToolCallConfirmationDetails | false> {
+ override async shouldConfirmExecute(): Promise<
+ ToolCallConfirmationDetails | false
+ > {
if (this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT) {
return false;
}
@@ -337,7 +339,9 @@ export class WebFetchTool extends BaseDeclarativeTool<
}
}
- protected validateToolParams(params: WebFetchToolParams): string | null {
+ protected override validateToolParams(
+ params: WebFetchToolParams,
+ ): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
diff --git a/packages/core/src/tools/web-search.ts b/packages/core/src/tools/web-search.ts
index 54679452..a2306894 100644
--- a/packages/core/src/tools/web-search.ts
+++ b/packages/core/src/tools/web-search.ts
@@ -103,7 +103,7 @@ export class WebSearchTool extends BaseTool<
return null;
}
- getDescription(params: WebSearchToolParams): string {
+ override getDescription(params: WebSearchToolParams): string {
return `Searching the web for: "${params.query}"`;
}
diff --git a/packages/core/src/tools/write-file.ts b/packages/core/src/tools/write-file.ts
index fa1e1301..01c92865 100644
--- a/packages/core/src/tools/write-file.ts
+++ b/packages/core/src/tools/write-file.ts
@@ -102,11 +102,11 @@ export class WriteFileTool
);
}
- toolLocations(params: WriteFileToolParams): ToolLocation[] {
+ override toolLocations(params: WriteFileToolParams): ToolLocation[] {
return [{ path: params.file_path }];
}
- validateToolParams(params: WriteFileToolParams): string | null {
+ override validateToolParams(params: WriteFileToolParams): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
@@ -144,7 +144,7 @@ export class WriteFileTool
return null;
}
- getDescription(params: WriteFileToolParams): string {
+ override getDescription(params: WriteFileToolParams): string {
if (!params.file_path) {
return `Model did not provide valid parameters for write file tool, missing or empty "file_path"`;
}
@@ -158,7 +158,7 @@ export class WriteFileTool
/**
* Handles the confirmation prompt for the WriteFile tool.
*/
- async shouldConfirmExecute(
+ override async shouldConfirmExecute(
params: WriteFileToolParams,
abortSignal: AbortSignal,
): Promise<ToolCallConfirmationDetails | false> {
diff --git a/packages/core/src/utils/errorParsing.test.ts b/packages/core/src/utils/errorParsing.test.ts
index f2a4709a..72a84d82 100644
--- a/packages/core/src/utils/errorParsing.test.ts
+++ b/packages/core/src/utils/errorParsing.test.ts
@@ -13,8 +13,6 @@ import { AuthType } from '../core/contentGenerator.js';
import { StructuredError } from '../core/turn.js';
describe('parseAndFormatApiError', () => {
- const _enterpriseMessage =
- 'upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits';
const vertexMessage = 'request a quota increase through Vertex';
const geminiMessage = 'request a quota increase through AI Studio';
diff --git a/packages/core/src/utils/filesearch/fileSearch.ts b/packages/core/src/utils/filesearch/fileSearch.ts
index 480d5815..dff8d0ec 100644
--- a/packages/core/src/utils/filesearch/fileSearch.ts
+++ b/packages/core/src/utils/filesearch/fileSearch.ts
@@ -289,7 +289,7 @@ export class FileSearch {
* Builds the in-memory cache for fast pattern matching.
*/
private buildResultCache(): void {
- this.resultCache = new ResultCache(this.allFiles, this.absoluteDir);
+ this.resultCache = new ResultCache(this.allFiles);
// The v1 algorithm is much faster since it only looks at the first
// occurence of the pattern. We use it for search spaces that have >20k
// files, because the v2 algorithm is just too slow in those cases.
diff --git a/packages/core/src/utils/filesearch/result-cache.test.ts b/packages/core/src/utils/filesearch/result-cache.test.ts
index 0b1b4e17..fcfa3f00 100644
--- a/packages/core/src/utils/filesearch/result-cache.test.ts
+++ b/packages/core/src/utils/filesearch/result-cache.test.ts
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import path from 'node:path';
import { test, expect } from 'vitest';
import { ResultCache } from './result-cache.js';
@@ -17,7 +16,7 @@ test('ResultCache basic usage', async () => {
'subdir/other.js',
'subdir/nested/file.md',
];
- const cache = new ResultCache(files, path.resolve('.'));
+ const cache = new ResultCache(files);
const { files: resultFiles, isExactMatch } = await cache.get('*.js');
expect(resultFiles).toEqual(files);
expect(isExactMatch).toBe(false);
@@ -25,7 +24,7 @@ test('ResultCache basic usage', async () => {
test('ResultCache cache hit/miss', async () => {
const files = ['foo.txt', 'bar.js', 'baz.md'];
- const cache = new ResultCache(files, path.resolve('.'));
+ const cache = new ResultCache(files);
// First call: miss
const { files: result1Files, isExactMatch: isExactMatch1 } =
await cache.get('*.js');
@@ -44,7 +43,7 @@ test('ResultCache cache hit/miss', async () => {
test('ResultCache best base query', async () => {
const files = ['foo.txt', 'foobar.js', 'baz.md'];
- const cache = new ResultCache(files, path.resolve('.'));
+ const cache = new ResultCache(files);
// Cache a broader query
cache.set('foo', ['foo.txt', 'foobar.js']);
diff --git a/packages/core/src/utils/filesearch/result-cache.ts b/packages/core/src/utils/filesearch/result-cache.ts
index 77b99aec..cf0c2b4b 100644
--- a/packages/core/src/utils/filesearch/result-cache.ts
+++ b/packages/core/src/utils/filesearch/result-cache.ts
@@ -13,10 +13,7 @@ export class ResultCache {
private hits = 0;
private misses = 0;
- constructor(
- private readonly allFiles: string[],
- private readonly absoluteDir: string,
- ) {
+ constructor(private readonly allFiles: string[]) {
this.cache = new Map();
}
diff --git a/packages/core/src/utils/memoryImportProcessor.test.ts b/packages/core/src/utils/memoryImportProcessor.test.ts
index 94fc1193..300d44fb 100644
--- a/packages/core/src/utils/memoryImportProcessor.test.ts
+++ b/packages/core/src/utils/memoryImportProcessor.test.ts
@@ -11,7 +11,7 @@ import { marked } from 'marked';
import { processImports, validateImportPath } from './memoryImportProcessor.js';
// Helper function to create platform-agnostic test paths
-const testPath = (...segments: string[]) => {
+function testPath(...segments: string[]): string {
// Start with the first segment as is (might be an absolute path on Windows)
let result = segments[0];
@@ -27,9 +27,8 @@ const testPath = (...segments: string[]) => {
}
return path.normalize(result);
-};
+}
-// Mock fs/promises
vi.mock('fs/promises');
const mockedFs = vi.mocked(fs);
@@ -509,21 +508,21 @@ describe('memoryImportProcessor', () => {
expect(result.importTree.imports).toHaveLength(2);
// First import: nested.md
- // Prefix with underscore to indicate they're intentionally unused
- const _expectedNestedPath = testPath(projectRoot, 'src', 'nested.md');
- const _expectedInnerPath = testPath(projectRoot, 'src', 'inner.md');
- const _expectedSimplePath = testPath(projectRoot, 'src', 'simple.md');
-
// Check that the paths match using includes to handle potential absolute/relative differences
- expect(result.importTree.imports![0].path).toContain('nested.md');
+ const expectedNestedPath = testPath(projectRoot, 'src', 'nested.md');
+
+ expect(result.importTree.imports![0].path).toContain(expectedNestedPath);
expect(result.importTree.imports![0].imports).toHaveLength(1);
+
+ const expectedInnerPath = testPath(projectRoot, 'src', 'inner.md');
expect(result.importTree.imports![0].imports![0].path).toContain(
- 'inner.md',
+ expectedInnerPath,
);
expect(result.importTree.imports![0].imports![0].imports).toBeUndefined();
// Second import: simple.md
- expect(result.importTree.imports![1].path).toContain('simple.md');
+ const expectedSimplePath = testPath(projectRoot, 'src', 'simple.md');
+ expect(result.importTree.imports![1].path).toContain(expectedSimplePath);
expect(result.importTree.imports![1].imports).toBeUndefined();
});
@@ -724,21 +723,20 @@ describe('memoryImportProcessor', () => {
expect(result.importTree.imports).toHaveLength(2);
// First import: nested.md
- // Prefix with underscore to indicate they're intentionally unused
- const _expectedNestedPath = testPath(projectRoot, 'src', 'nested.md');
- const _expectedInnerPath = testPath(projectRoot, 'src', 'inner.md');
- const _expectedSimplePath = testPath(projectRoot, 'src', 'simple.md');
+ const expectedNestedPath = testPath(projectRoot, 'src', 'nested.md');
+ const expectedInnerPath = testPath(projectRoot, 'src', 'inner.md');
+ const expectedSimplePath = testPath(projectRoot, 'src', 'simple.md');
// Check that the paths match using includes to handle potential absolute/relative differences
- expect(result.importTree.imports![0].path).toContain('nested.md');
+ expect(result.importTree.imports![0].path).toContain(expectedNestedPath);
expect(result.importTree.imports![0].imports).toHaveLength(1);
expect(result.importTree.imports![0].imports![0].path).toContain(
- 'inner.md',
+ expectedInnerPath,
);
expect(result.importTree.imports![0].imports![0].imports).toBeUndefined();
// Second import: simple.md
- expect(result.importTree.imports![1].path).toContain('simple.md');
+ expect(result.importTree.imports![1].path).toContain(expectedSimplePath);
expect(result.importTree.imports![1].imports).toBeUndefined();
});
@@ -899,7 +897,7 @@ describe('memoryImportProcessor', () => {
// Test relative paths - resolve them against basePath
const relativePath = './file.md';
- const _resolvedRelativePath = path.resolve(basePath, relativePath);
+ path.resolve(basePath, relativePath);
expect(validateImportPath(relativePath, basePath, [basePath])).toBe(true);
// Test parent directory access (should be allowed if parent is in allowed paths)
@@ -907,12 +905,12 @@ describe('memoryImportProcessor', () => {
if (parentPath !== basePath) {
// Only test if parent is different
const parentRelativePath = '../file.md';
- const _resolvedParentPath = path.resolve(basePath, parentRelativePath);
+ path.resolve(basePath, parentRelativePath);
expect(
validateImportPath(parentRelativePath, basePath, [parentPath]),
).toBe(true);
- const _resolvedSubPath = path.resolve(basePath, 'sub');
+ path.resolve(basePath, 'sub');
const resultSub = validateImportPath('sub', basePath, [basePath]);
expect(resultSub).toBe(true);
}
diff --git a/packages/core/src/utils/memoryImportProcessor.ts b/packages/core/src/utils/memoryImportProcessor.ts
index 68de7963..751e0ace 100644
--- a/packages/core/src/utils/memoryImportProcessor.ts
+++ b/packages/core/src/utils/memoryImportProcessor.ts
@@ -261,7 +261,7 @@ export async function processImports(
// Process imports in reverse order to handle indices correctly
for (let i = imports.length - 1; i >= 0; i--) {
- const { start, _end, path: importPath } = imports[i];
+ const { start, path: importPath } = imports[i];
// Skip if inside a code region
if (