Skip to content

Commit dcd5719

Browse files
committed
feat(tool): add logging for codebase analysis results
Log the number of concepts and files with signatures after analysis, and display top concepts if available. Also remove obsolete deep-research-report.md file.
1 parent c4d3ce4 commit dcd5719

File tree

2 files changed

+5
-67
lines changed

2 files changed

+5
-67
lines changed

mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/tool/impl/CodebaseInsightsTool.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ class CodebaseInsightsTool(
231231
statistics = statistics
232232
)
233233

234+
logger.info { "Codebase analysis completed: ${result.domainConcepts.size} concepts, ${result.functionSignatures.size} files with signatures" }
235+
if (result.domainConcepts.isNotEmpty()) {
236+
logger.info { "Top concepts: ${result.domainConcepts.take(5).joinToString { it.name }}" }
237+
}
238+
234239
cachedResult = result
235240
return result
236241

prompts/deep-research-report.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)