v1.0.11
Context hygiene for the build pipeline — scan, compress, and now see where the tokens go.
Highlights
perseus scan(#481) — secrets/PII build gate. Renders with redaction off (in-memory only) and fails CI on secret shapes pulled in via@env/@query/@include/@tool. Masked reports.--pii(email/SSN/phone/Luhn-validated cards, precision-first),--report-only,--json.perseus compress(#482) — deterministic, dependency-free context compression with a citable token-reduction %. Trims trailing whitespace, collapses blank-line runs, dedups adjacent lines, optionally strips comments — fenced code preserved verbatim. Same input → same output → same number, so a build can assert on it.perseus preview(#483) — diffable token-annotated compile preview: where the tokens go, per directive and per markdown section. Output is free of volatile fields (no timestamps/durations/cache flags) and stably ordered, so the same source yields byte-identical output and a build can diff its context budget over time. Reports tier-skipped directives.--jsonfor a stable CI-diffable schema.
Install: pip install -U perseus-ctx
Full test suite: 1154+ passing.