Use Qwen3-Embedding-4B and Qwen3-Reranker-4B (both Q4_K_M) for QMD local
search, and make the switch reach existing installations:
- Rewrite the setup-owned models block on every install and update, while
still recording the user's original block only once.
- When the new embedding size no longer matches stored vectors, the daemon
clears the old vectors and re-embeds the repository.
- Delete setup-downloaded model files the current models no longer use.
- Skip npm and pnpm lockfiles and minified bundles when indexing
repositories, which saves embedding work and removes search noise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm's global bin directory is often missing from PATH on Windows, so the
installer failed at `qmd pull` right after installing the package. Run the
QMD CLI through node from `npm root --global`, as the QMD scripts already
do, and look up other globally installed CLIs such as mcporter in
`npm prefix --global` when they are not on PATH. Doctor now warns when
npm's global bin directory is missing from PATH, since agents call
mcporter directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a machine where no global npm package was ever installed, the global
prefix directory does not exist and `npm list --global --json` reports
ENOENT without a dependency list. QMD setup treated that as an unreliable
listing and failed the install/update. It now means the package is not
installed; other unreliable listings still fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removal reads the daemon PID before --stop and waits up to 10 s for it
to exit. A model file that cannot be deleted stays recorded in the state
for a retry instead of aborting removal, and a failing models block
restore only warns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Auto now rolls back and reports "not suitable" when Node.js is too old,
npm or the model download fails. A failing GPU probe falls back to the
CPU in both Yes and Auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>