previous-draft/collect.py:1
previous-draft/collect.py:2
"""LLM usage collection and statistics entry point.
1. Managed Blueprint Automation calls run(ctx).
ctx.input: {"refresh": bool, "tools": [names...]}
2. Standalone: python collect.py [--refresh] [--tool NAME ...] [--out PATH]
After incremental collection, write the statistical snapshot to dashboard/data.json
for the static dashboard and print source states. The default database is data/usage.db.
previous-draft/collect.py:21
previous-draft/collect.py:22
previous-draft/collect.py:23
previous-draft/collect.py:29
"""Discover all collector modules under collectors/; add one file to introduce a tool."""
previous-draft/collect.py:90
# Recompute only dates with new events; historical data reuses the cache.