Compass reader 1.0

Use Python 3.10 or newer with its standard library (3.11+ also reads
poetry.lock and uv.lock). Extract the archive into a new directory and run
the commands from there. Nothing is installed.

Guest check: compare the dependency files you choose against the public
24-hour advisory window (GitHub reviewed advisories and CISA KEV):

  python3 -B compass_check.py /path/to/package-lock.json /path/to/requirements.txt

Name each file you want checked. The checker reads only those files, makes
one GET for the public advisory window (the request carries no inventory),
and matches on this machine. Supported: package-lock.json and
npm-shrinkwrap.json (v1-v3), pnpm-lock.yaml (v5-v9), yarn.lock (classic and
Berry), requirements*.txt with name==version pins, Pipfile.lock, poetry.lock
and uv.lock. Anything else, unpinned lines and entries without a version are
listed as unknown.

  --json result.json        also write the full result as JSON
  --save-snapshot w.json    keep the downloaded window for an offline re-run
  --snapshot w.json         check against a saved window, with no network
  --fail-on-match           exit 1 when there are potential matches (CI, cron)
  --fail-on-stale           exit 3 when a source is stale

Each check covers the last 24 hours. Run it at least daily; twice a day keeps
consecutive windows overlapping.

The result lists potential matches with package, version, affected range and
the original advisory link, then everything that could not be compared, and
says which sources and window were covered and whether they were fresh.

A version match is a reason to investigate, not proof that the running
service is exploitable. No matches means none in these sources, this 24-hour
window and the inputs checked. It does not mean the stack is clean. Lockfile
versions are what was resolved, not proof of what is deployed.

Full index reader (larger, slower download of the whole bounded index):

  python3 -B compass_catalog.py --network --export-version 3 --catalog compass-public.sqlite
  python3 -B compass.py inventory /path/to/package-lock.json --project selected-project --output selected-inventory.json
  python3 -B compass_catalog.py --catalog compass-public.sqlite --inventory selected-inventory.json --project selected-project --output public-feed.json
  python3 -B compass.py --state public-feed.json report selected-inventory.json

SOURCE.json records the module digests in this archive.
