feat: Introduce agent teams, agent linking, and advanced agent orchestration features.

This commit is contained in:
viettranx committed 2026-02-25 23:24:52 +07:00
1 parent 67b19e4746
commit dfd91556f8
113 files changed
+6785 -672

No files matched your search

+3 -1
View File
@@ -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)
+3 -1
View File
@@ -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
}