LOG_LEVEL was documented but never read; the level was fixed at INFO.
The JSON handler now sits on the "src" package logger so all service
modules share format and level. Invalid values fall back to INFO.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
/extract now accepts all EN 16931 e-invoices, not only ZUGFeRD PDFs:
- plain XML files via the new xml_base64 field; XML sent as pdf_base64
is detected from the content
- UBL 2.1 Invoice and CreditNote (XRechnung UBL, Peppol BIS Billing) via
the new src/ubl_parser.py, also when embedded in a PDF
- new response field xml_syntax ("CII" or "UBL")
- CII invoice dates are normalized to YYYY-MM-DD, matching UBL
- XRechnung profiles are detected from the specification identifier,
independent of the factur-x version (6.x reports them as EN16931)
- untrusted XML is parsed without entity or DTD resolution (XXE)
Fixtures: KoSIT XRechnung test-suite case 01.01a in CII and UBL.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Expose nixosModules.default in flake outputs for easy import
- Add argparse to main.py for --host and --port CLI flags
- Support priority: CLI args > env vars > defaults