turnstone/app
pyr0ball 600e5a9eac feat(sources): context-aware filesystem log scanner (#23)
Add scan_log_directories() to discover.py that recursively walks
/var/log and /opt, filters to readable log files, and scores each
candidate by recency (mtime, 0.7 weight), file size (0.3), and
keyword match against an optional problem-context query (shifts
weights to 0.4/0.2/0.4 when a query is provided).

- GET /api/setup/scan?query=...&max_results=N — new API endpoint
- SourcesView: "Scan" button opens a panel with ranked candidates,
  checkboxes, and "Add selected" to write to sources.yaml
- 13 new unit tests, 466 passing total

Closes: #23
2026-06-14 14:01:45 -07:00
..
api feat: initial Turnstone POC — ingest, FTS search, MCP server 2026-05-08 12:12:34 -07:00
context feat: dual-backend SQLite/Postgres + multi-tenant source namespacing 2026-06-08 08:37:54 -07:00
db feat(alerts): security alerts tab — full scorer integration 2026-06-10 14:32:43 -07:00
glean fix(corpus): glean_dir now recurses subdirs; fix docker SOURCE prefix 2026-06-11 16:30:28 -07:00
services feat(sources): context-aware filesystem log scanner (#23) 2026-06-14 14:01:45 -07:00
tasks feat(incidents): auto-incident detection + example-node Podman setup 2026-06-11 18:37:53 -07:00
watch fix(watcher): remove per-flush FTS sync to eliminate SQLite write lock contention 2026-06-10 12:42:24 -07:00
__init__.py feat: initial Turnstone POC — ingest, FTS search, MCP server 2026-05-08 12:12:34 -07:00
mcp_server.py chore: sanitize internal hostnames and IP references 2026-06-13 10:02:46 -07:00
rest.py feat(sources): context-aware filesystem log scanner (#23) 2026-06-14 14:01:45 -07:00