chore: auto-commit (7 archivos)

- call_monitor
- main.go
- operations.db
- operations.db-shm
- operations.db-wal
- cluster.go
- cluster_test.go

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-16 16:33:24 +02:00
parent 37ae34bcfc
commit 8e51094d94
7 changed files with 320 additions and 0 deletions
+13
View File
@@ -62,6 +62,19 @@ func main() {
MinSuccessRate: 0.9,
}
runSequences(resolveDB(*dbPath), *detect, *report, *propose, *formatJSON, *root, cfg)
case "cluster-patterns":
minOcc := fs.Int("min-occurrences", 3, "Minimum occurrences to keep a cluster.")
lookback := fs.Int("lookback-days", 30, "How many days of calls to scan.")
persist := fs.Bool("persist", false, "Upsert clusters into the patterns table.")
formatJSON := fs.Bool("json", false, "Output JSON instead of text.")
toolsCSV := fs.String("tools", "heredoc_py,heredoc_bash,sqlite_direct,bash_other", "Comma-separated tool_used values to consider.")
fs.Parse(os.Args[2:])
tools := splitCSV(*toolsCSV)
runClusterPatterns(resolveDB(*dbPath), ClusterConfig{
MinOccurrences: *minOcc,
LookbackDays: *lookback,
Tools: tools,
}, *persist, *formatJSON)
case "-h", "--help", "help":
usage()
default: