Initialize git, add Apache-2.0 LICENSE, .gitattributes (LF line endings), AGENTS.md (entry points, stack, discovery order, baseline checks), RUNBOOK.md (dev boot, prod deploy with overlay, ingestion, failures, rollback, scaling notes), .env.prod.example with rotated credential placeholders, and dev-only warnings on .env.example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
25 lines
521 B
Python
25 lines
521 B
Python
"""Re-run the pipeline for a single document by ID."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
import uuid
|
|
|
|
import click
|
|
|
|
from app.ingestion.pipeline import process_document_id
|
|
from app.logging_config import configure_logging
|
|
|
|
configure_logging()
|
|
|
|
|
|
@click.command()
|
|
@click.option("--document-id", required=True, type=str)
|
|
def main(document_id: str) -> None:
|
|
result = process_document_id(uuid.UUID(document_id))
|
|
click.echo(result)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main(standalone_mode=True) or 0)
|