Skip to content

Commit 131af1e

Browse files
committed
refactor(codebase-map): simplify parameters and enhance output formatting for codebase overview
1 parent 8ea03f4 commit 131af1e

2 files changed

Lines changed: 79 additions & 377 deletions

File tree

src/client-pipe.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ export interface CodebaseTreeNode {
232232
type: 'directory' | 'file';
233233
children?: CodebaseTreeNode[];
234234
symbols?: CodebaseSymbolNode[];
235-
imports?: string[];
236-
lines?: number;
237235
}
238236

239237
export interface CodebaseOverviewResult {
@@ -388,18 +386,16 @@ export interface CodebaseTraceSymbolResult {
388386
* Get a structural overview of the codebase as a recursive tree.
389387
*/
390388
export async function codebaseGetOverview(
391-
rootDir?: string,
392-
depth?: number,
393-
filter?: string,
394-
includeImports?: boolean,
395-
includeStats?: boolean,
396-
includePatterns?: string[],
397-
excludePatterns?: string[],
389+
rootDir: string,
390+
folderPath: string,
391+
recursive: boolean,
392+
fileTypes: string | string[],
393+
symbols: boolean,
398394
timeout?: number,
399395
): Promise<CodebaseOverviewResult> {
400396
const result = await sendClientRequest(
401397
'codebase.getOverview',
402-
{rootDir, depth, filter, includeImports, includeStats, includePatterns, excludePatterns},
398+
{rootDir, folderPath, recursive, fileTypes, symbols},
403399
timeout ?? 30_000,
404400
);
405401
assertResult<CodebaseOverviewResult>(result, 'codebase.getOverview');

0 commit comments

Comments
 (0)