fix(phase-10): add --sources filter flag and DB persistence to recon full

Closes 2 verification gaps:
1. --sources=github,gitlab flag filters registered sources before sweep
2. Findings persisted to SQLite via storage.SaveFinding after dedup

Also adds Engine.Get() method for source lookup by name.
This commit is contained in:
salvacybersec
2026-04-06 11:36:19 +03:00
parent 1acbedc03a
commit 118decbb3e
2 changed files with 77 additions and 1 deletions

View File

@@ -33,6 +33,14 @@ func (e *Engine) Register(s ReconSource) {
e.sources[s.Name()] = s
}
// Get returns a registered source by name and true, or nil and false.
func (e *Engine) Get(name string) (ReconSource, bool) {
e.mu.RLock()
defer e.mu.RUnlock()
s, ok := e.sources[name]
return s, ok
}
// List returns registered source names in sorted order.
func (e *Engine) List() []string {
e.mu.RLock()