cp.nvim/lua
Barrett Ruth ecbe60cbd8
feat(scraper): add stdin pipe to NDJSON spawn; stream submit with on_status
Problem: The NDJSON spawn path had no stdin support, so `M.submit` used
one-shot `vim.system()` with no live feedback. Status events from the
scraper were never surfaced to Neovim.

Solution: Conditionally create a `stdin_pipe` in the NDJSON path and
write `opts.stdin` after spawn. Switch `M.submit` to `ndjson=true`; route
`ev.status` events to a new `on_status` callback and `ev.success` to the
existing `callback`. A `done` flag prevents double-callback on crash.
2026-03-04 19:02:37 -05:00
..
cp feat(scraper): add stdin pipe to NDJSON spawn; stream submit with on_status 2026-03-04 19:02:37 -05:00