Skip to content

feat(cli): support transient input paths in run pipeline #409

Closed

Description

@Sinity

Parent

Part of #401.

Problem

polylogue run is currently configured-source first. It accepts --source names such as claude-code, codex, gemini, and inbox, but it does not accept one-shot input files or directories.

That makes downloaded ChatGPT/Claude web UI exports awkward: README/docs tell users to copy files into ~/.local/share/polylogue/inbox/ and then run the pipeline. That inbox model is a path-dependent leftover from when stable configured paths were the main source abstraction. For web UI exports, the input is normally a downloaded file or zip in ~/Downloads, not a durable source location.

Polylogue already persists raw payloads for configured path sources using its existing raw/blob-store semantics. --input should reuse that same path and preserve the same guarantees. It should not invent a stronger or different raw-retention promise.

Target CLI shape

Keep run as the pipeline/sync command, but let it accept transient inputs:

polylogue run --input ~/Downloads/conversations.json
polylogue run --input ~/Downloads/chatgpt.zip --input ~/Downloads/claude.zip all
polylogue run --input ~/Downloads/exports/ acquire parse materialize index
polylogue run --source claude-code --source codex all

Semantics:

  • --source means durable configured source.
  • --input means transient file/directory/archive path for this run.
  • --input paths become transient Source instances with stable provenance labels.
  • Inputs may be mixed with configured sources when useful, but errors should be explicit and predictable.

Ambitious expansion

Make this the product import story, not just a flag:

  • Accept files, directories, zips, JSON, JSONL, and provider export bundles through the existing acquisition/parsing machinery.
  • Reuse the exact raw persistence/idempotency semantics already used for configured path sources.
  • Preserve original path provenance where the current raw/source machinery supports it.
  • Make duplicate imports visibly idempotent.
  • Make --preview work for inputs.
  • Make shell completion and help text distinguish configured sources from transient inputs.
  • Remove inbox as a product/source concept rather than merely lowering its prominence.
  • Add focused scenario coverage so docs can show run --input as the normal web-export path.

Acceptance criteria

  • polylogue run --input PATH works for a single export file.
  • Repeated --input works for multiple files and/or directories.
  • Zip and plain JSON/JSONL inputs exercise the same acquisition/parsing/raw path as configured sources.
  • Raw record/blob behavior is identical to the existing configured-path source behavior; no new retention semantics are introduced.
  • --preview describes transient input work without writing.
  • The configured inbox source, inbox path docs, inbox README examples, and tests that present inbox as a concept are removed or replaced.
  • README and CLI reference no longer instruct users to copy downloaded web exports into inbox.
  • Focused tests cover CLI option parsing, source planning, acquisition idempotency under current raw semantics, and at least one end-to-end seeded input run.

Activity

  1. added
    type:feat
    theme:command-surface
    on Apr 26, 2026
  2. Sinity commented on Apr 26, 2026

    @Sinity
    OwnerAuthor

    Structural audit note: this issue needs to remove inbox from live code paths, not just introduce --input.

    Concrete references found during audit:

    • polylogue/config.py currently creates Source(name="inbox", path=inbox_root()) as the default configured source.
    • polylogue/paths/_roots.py exposes inbox_root().
    • polylogue/browser_capture/receiver.py defaults browser captures to inbox_root() / "browser-capture", computes deterministic inbox artifact paths, and exposes inbox_path in receiver status.
    • polylogue/cli/commands/browser_capture.py exposes --inbox and says captures go to the normal inbox.
    • README/configuration/CLI docs and integration tests still use --source inbox.

    Acceptance clarification: after this lands, there should be no user-visible or product-code inbox primitive. File/path imports should be explicit transient inputs (run --input ... or equivalent), while stable real sources remain provider/runtime sources such as Claude Code and Codex histories. Browser capture must not recreate an inbox-shaped default under another name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:pipelinetheme:command-surfacetype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions