Repository navigation
Description
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 allSemantics:
--sourcemeans durable configured source.--inputmeans transient file/directory/archive path for this run.--inputpaths become transientSourceinstances 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
--previewwork for inputs. - Make shell completion and help text distinguish configured sources from transient inputs.
- Remove
inboxas a product/source concept rather than merely lowering its prominence. - Add focused scenario coverage so docs can show
run --inputas the normal web-export path.
Acceptance criteria
polylogue run --input PATHworks for a single export file.- Repeated
--inputworks 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.
--previewdescribes transient input work without writing.- The configured
inboxsource, 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
Sinity commentedon Apr 26, 2026
Structural audit note: this issue needs to remove
inboxfrom live code paths, not just introduce--input.Concrete references found during audit:
polylogue/config.pycurrently createsSource(name="inbox", path=inbox_root())as the default configured source.polylogue/paths/_roots.pyexposesinbox_root().polylogue/browser_capture/receiver.pydefaults browser captures toinbox_root() / "browser-capture", computes deterministic inbox artifact paths, and exposesinbox_pathin receiver status.polylogue/cli/commands/browser_capture.pyexposes--inboxand says captures go to the normal inbox.--source inbox.Acceptance clarification: after this lands, there should be no user-visible or product-code
inboxprimitive. 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.feat(devtools): migration-completeness manifest
feat(devtools): migration-completeness manifest
feat(devtools): migration-completeness manifest (#451)
feat(devtools): migration-completeness manifest (#451)
feat(cli): support transient --input paths in run pipeline (#409)