mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-04 07:07:16 -07:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user