Adding list sub command to memoryCommand to list the path of GEMINI.md files (#10108)

Co-authored-by: Abhi <43648792+abhipatel12@users.noreply.github.com>
This commit is contained in:
sgnagnarella
2025-10-02 17:46:54 -04:00
committed by GitHub
parent 3b6b2225f8
commit 4e8deaf7b8
8 changed files with 250 additions and 63 deletions
+3 -1
View File
@@ -331,6 +331,7 @@ function concatenateInstructions(
export interface LoadServerHierarchicalMemoryResponse {
memoryContent: string;
fileCount: number;
filePaths: string[];
}
/**
@@ -370,7 +371,7 @@ export async function loadServerHierarchicalMemory(
if (filePaths.length === 0) {
if (debugMode)
logger.debug('No GEMINI.md files found in hierarchy of the workspace.');
return { memoryContent: '', fileCount: 0 };
return { memoryContent: '', fileCount: 0, filePaths: [] };
}
const contentsWithPaths = await readGeminiMdFiles(
filePaths,
@@ -393,5 +394,6 @@ export async function loadServerHierarchicalMemory(
return {
memoryContent: combinedInstructions,
fileCount: contentsWithPaths.length,
filePaths,
};
}