feat(cli): add memory system status to picoclaw status command

Displays memory enabled state, embedding provider/model/dims, Turso
replication status, sync interval, and database file size in the CLI
status output. Also gitignores eval-runner binary.
This commit is contained in:
ZanzyTHEbar 2026-02-18 13:09:01 +00:00
parent 16fb2e2c95
commit 9897105f62
2 changed files with 31 additions and 0 deletions

1
.gitignore vendored
View file

@ -45,3 +45,4 @@ tasks/
# Added by goreleaser init: # Added by goreleaser init:
dist/ dist/
eval-runner

View file

@ -773,6 +773,36 @@ func statusCmd() {
fmt.Printf(" %s (%s): %s\n", provider, cred.AuthMethod, status) fmt.Printf(" %s (%s): %s\n", provider, cred.AuthMethod, status)
} }
} }
// Memory system status
fmt.Println("\nMemory System:")
if cfg.Memory.Enabled {
fmt.Println(" Enabled: ✓")
fmt.Printf(" Embedding dims: %d\n", cfg.Memory.EmbeddingDims)
if cfg.Memory.Embedding.Provider != "" {
fmt.Printf(" Embedding provider: %s\n", cfg.Memory.Embedding.Provider)
if cfg.Memory.Embedding.Model != "" {
fmt.Printf(" Embedding model: %s\n", cfg.Memory.Embedding.Model)
}
} else {
fmt.Println(" Embedding provider: none (FTS5-only)")
}
if cfg.Memory.Sync.SyncURL != "" {
fmt.Printf(" Turso replica: ✓ %s\n", cfg.Memory.Sync.SyncURL)
fmt.Printf(" Sync interval: %ds\n", cfg.Memory.Sync.SyncIntervalSeconds)
} else {
fmt.Println(" Turso replica: local-only")
}
memDBPath := cfg.Memory.DBPath
if memDBPath == "" {
memDBPath = filepath.Join(workspace, "memory", "picoclaw.db")
}
if fi, err := os.Stat(memDBPath); err == nil {
fmt.Printf(" DB size: %.1f KB\n", float64(fi.Size())/1024)
}
} else {
fmt.Println(" Enabled: ✗")
}
} }
} }