diff --git a/scripts/reissue_claims.py b/scripts/reissue_claims.py new file mode 100755 index 0000000..2ac9e50 --- /dev/null +++ b/scripts/reissue_claims.py @@ -0,0 +1,37 @@ +"""DEPRECATED shim — use ``cyclone reissue-claims`` instead. + +This script previously hosted the operator's one-shot workflow for +rebuilding the 2026-07-08 dzinesco July-8 batches into 358 IG-correct +single-claim X12 files. The workflow now lives in +:mod:`cyclone.reissue` and is exposed as the Click subcommand +``cyclone reissue-claims``. See +``docs/superpowers/specs/2026-07-08-cyclone-reissue-claims-design.md`` +for the SP24 rationale. + +Behavior preserved: ``python scripts/reissue_claims.py --help`` +shows the canonical ``cyclone --help`` group help (then ``reissue-claims +--help`` follows the same Click flow as ``cyclone reissue-claims --help``). +A ``DeprecationWarning`` is emitted at import time so the operator's +tests / cron jobs catch the migration. +""" +from __future__ import annotations + +import sys +import warnings + +warnings.warn( + "`scripts/reissue_claims.py` is deprecated; use " + "`cyclone reissue-claims` (the Click subcommand) for the canonical " + "offline reissue workflow. This shim is removed in a follow-up SP.", + DeprecationWarning, + stacklevel=2, +) + +from cyclone.cli import main # noqa: E402 (import after the warning) + + +if __name__ == "__main__": + # The Click group expects the subcommand as argv[1]; strip the + # script argv prefix so `python scripts/reissue_claims.py --help` + # behaves like `cyclone --help`. + sys.exit(main()) \ No newline at end of file