Repository navigation
refactor(cli): rename ingest command to import (#1815) - #1875
Conversation
Renames the public CLI command `polylogue ingest` → `polylogue import`. No backwards-compat alias. The old module polylogue/cli/commands/ingest.py is deleted and replaced by import_command.py (using a non-keyword module name since `import.py` is illegal in Python). Internal vocabulary is preserved: pipeline modules, daemon endpoints (/api/ingest), live_ingest_attempt tables, and cursor/stage names remain unchanged — those are not public command vocabulary. Changes: - polylogue/cli/commands/import_command.py (new, replaces ingest.py) - polylogue/cli/click_command_registration.py: module key + command name - polylogue/cli/commands/commands.py: command group listing - polylogue/cli/output_assurance.py: INGEST_FAMILY string stays "import" - tests/unit/cli/test_import.py (new, replaces test_ingest.py) - test_output_contracts.py, test_sentinel_env_leak.py: invoke "import" - syrupy snapshots (help_snapshots, terminal_snapshots): ingest → import - docs/maintenance.md: polylogue ingest → polylogue import in examples - docs/cli-audit.md: command table entries updated - docs/getting-started.md, docs/configuration.md: already updated Ref #1815 Co-Authored-By: Claude <[email protected]>
Regenerated files following the command rename: - AGENTS.md (re-rendered from CLAUDE.md) - docs/cli-reference.md (re-rendered from live CLI help) - docs/plans/topology-target.yaml (re-projected after module rename) - docs/test-quality-workflows.md (exercise catalog re-rendered) - tests/baselines/showcase/help-ingest.txt → help-import.txt - tests/baselines/showcase/help-main.txt (command list updated) Co-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
More reviews will be available in 53 minutes and 28 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (25)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Renames the public CLI command
polylogue ingest→polylogue import. No backwards-compat alias. This is the first slice of #1815.Problem
The command was named
ingest— a pipeline/daemon internal verb — while its user-facing role is to schedule a file for import. The mismatch violated the vocabulary policy (#1815) and caused confusion for new users expectingpolylogue import.Solution
polylogue/cli/commands/ingest.py; new module ispolylogue/cli/commands/import_command.py(module can't be namedimport.py— Python keyword)"ingest"to"import"in the@click.commanddecoratorclick_command_registration.py: module key changed to"import_command", display name to"import"commands.py: command group listing updatedoutput_assurance.py:INGEST_FAMILYconstant value updated to"import"test_ingest.pyreplaced bytest_import.py; all invocations updated to"import"polylogue ingestcommand invocations →polylogue importInternal vocabulary preserved:
pipeline/ingest_support.py,pipeline/services/ingest_batch.py,live_ingest_attempt, daemon/api/ingestendpoint,live-ingestlog terminology — all unchanged. Those are not public command vocabulary.Deferred to later #1815 slices
provider_metafield eliminationprovider/conversation→origin/sessionterminology sweepVerification
Ref #1815