mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-16 16:15:40 +00:00
feat: Introduce agent teams, agent linking, and advanced agent orchestration features.
This commit is contained in:
1 parent
67b19e4746
commit
dfd91556f8
113 files changed
+6785
-672
No files matched your search
@@ -8,6 +8,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/nextlevelbuilder/goclaw/internal/bootstrap"
|
||||
)
|
||||
|
||||
// ManagerConfig configures the memory manager.
|
||||
@@ -169,7 +171,7 @@ func (m *Manager) IndexAll(ctx context.Context) error {
|
||||
memoryDir := m.config.MemoryDir
|
||||
|
||||
// Index MEMORY.md at root
|
||||
memoryFile := filepath.Join(memoryDir, "MEMORY.md")
|
||||
memoryFile := filepath.Join(memoryDir, bootstrap.MemoryFile)
|
||||
if _, err := os.Stat(memoryFile); err == nil {
|
||||
if err := m.IndexFile(ctx, memoryFile); err != nil {
|
||||
slog.Warn("failed to index MEMORY.md", "error", err)
|
||||
|
||||
@@ -10,6 +10,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/fsnotify/fsnotify"
|
||||
|
||||
"github.com/nextlevelbuilder/goclaw/internal/bootstrap"
|
||||
)
|
||||
|
||||
// watchDebounce is the delay before re-indexing after file changes.
|
||||
@@ -165,7 +167,7 @@ func (w *Watcher) handleEvent(ctx context.Context, event fsnotify.Event) {
|
||||
}
|
||||
|
||||
// Only watch MEMORY.md at root or files under memory/ subdirectory
|
||||
if rel != "MEMORY.md" && rel != "memory.md" && !strings.HasPrefix(rel, "memory/") && !strings.HasPrefix(rel, "memory"+string(filepath.Separator)) {
|
||||
if rel != bootstrap.MemoryFile && rel != bootstrap.MemoryAltFile && !strings.HasPrefix(rel, "memory/") && !strings.HasPrefix(rel, "memory"+string(filepath.Separator)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user