Opening a project from the console needed `:PiWebStart` first because the
managed spawn loaded the *user's* nvim config and ran with `stdio:"ignore"`.
When that config did not resolve pi2.nvim (lazy.nvim, a dev worktree behind
`PI_DEV_DIR`, a service with a frozen PATH) or the checkout lacked
`lua/pi/host.lua`, nvim stayed alive and silent and `instance.ensure` could only
report a bare 5 s timeout: nothing to read, nothing to fix.
- `core/plugin`: discover the plugin (`PI2_PLUGIN_DIR`, lazy.nvim,
`site/pack/*/{start,opt}`, system dirs) and require both `lua/pi/host.lua` and
`lua/pi/web/bridge.lua`; name a misconfigured `PI2_PLUGIN_DIR` first.
- `instances/host-init`: generate a minimal init (prepend the plugin, prepend
nothing else, `cquit 1` when `pi.host` is missing) so a spawn fails with a real
exit code instead of silence. `PI2_NVIM_INIT` keeps `user` (the old
behaviour) and any explicit path.
- supervisor: refuse to spawn when no host-capable plugin exists, route the
child's stdout/stderr into `instances/<id>.log`, and fold the log tail into
`instance_state.reason` and the thrown error. `PI2_ENSURE_TIMEOUT_MS`
(default 10000) replaces the fixed 5 s.
- `core/paths`: one shared `expandTilde` for the plugin probe, the workspace
allowlist and `pi2 doctor`.
`pi2 daemon [start] [flags]` now starts the web-console daemon. The
`pi2d` executable, its bin entry and its entry module are removed: the
daemon keeps its lock -> token -> plugin socket -> listen -> daemon.json
lifecycle, its single stdout line (`pi2 daemon listening on ...`) and the
signal handling that leaves managed nvim instances running.
Service files are renamed to `pi2.service` / `com.pi2.daemon`, and the
smoke and e2e harnesses start the daemon through `pi2 daemon`.
BREAKING CHANGE: the `pi2d` command no longer exists; use `pi2 daemon`
(or `pi2 daemon start`). Existing systemd/launchd units installed under
the old names must be reinstalled with `pi2 install-service --write`.