mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 12:27:29 +08:00
Slim subagent runtime surface and remove legacy interfaces
This commit is contained in:
@@ -171,12 +171,6 @@ func (t *MemorySearchTool) getMemoryFiles(namespace string) []string {
|
||||
files = append(files, mainMem)
|
||||
}
|
||||
|
||||
// Backward-compatible location: memory/MEMORY.md
|
||||
legacyMem := filepath.Join(base, "memory", "MEMORY.md")
|
||||
if _, err := os.Stat(legacyMem); err == nil {
|
||||
files = append(files, legacyMem)
|
||||
}
|
||||
|
||||
// Recursively include memory/**/*.md
|
||||
memDir := filepath.Join(base, "memory")
|
||||
_ = filepath.WalkDir(memDir, func(path string, d os.DirEntry, err error) error {
|
||||
|
||||
Reference in New Issue
Block a user