#!/usr/bin/env bash
# Proposal Intake — generate IETF draft proposals from text/URLs.
#
# Usage:
#   ./scripts/proposal-intake.sh "https://arxiv.org/abs/2503.18813"
#   ./scripts/proposal-intake.sh -f notes.txt
#   echo "article text" | ./scripts/proposal-intake.sh -
#   ./scripts/proposal-intake.sh --dry-run "some interesting paper text"
#
# This passes input to Claude along with all current gaps,
# and stores generated proposals in the database.
# View results at http://localhost:5000/proposals (--dev mode)

set -euo pipefail
cd "$(dirname "$0")/.."

python -m ietf_analyzer.cli intake "$@"
