fix(qmd): restart daemon on update, check version, add doctor checks
- Stop the running QMD daemon before install and update replace the runtime scripts, so the next search loads the new code and models and Windows no longer keeps old model files locked. - Read the installed @tobilu/qmd version: reinstall a setup-owned package at the tested version, and warn about a foreign one of another version. - Add QMD checks to doctor (PowerShell and Bash) through `qmd.py doctor`: runtime script digests, package version, model files, and daemon health. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca4cb2a144
commit
82d9992b3a
5 files changed
+141
-22
No files matched your search
@@ -85,6 +85,9 @@ Install and update rewrite the setup-owned `models:` block, so changed models re
|
||||
When a new embedding model produces vectors of another size, the daemon clears all old vectors and
|
||||
re-embeds each repository on its next search; run `qmd embed` to re-embed your own QMD collections.
|
||||
Install and update also delete model files the setup downloaded that the current models no longer use.
|
||||
They stop a running QMD daemon first, so the next search uses the new scripts and models. A QMD package
|
||||
the setup installed is reinstalled at the tested version; a foreign installation of another version is kept
|
||||
and reported. `doctor` checks the runtime scripts, the QMD version, the model files, and the daemon.
|
||||
Repository indexes skip git-ignored files, npm and pnpm lockfiles, and minified `*.min.js` bundles.
|
||||
Auto thresholds can be overridden with `QMD_BENCHMARK_MAX_QUERY_SECONDS` and
|
||||
`QMD_BENCHMARK_MIN_CHUNKS_PER_SECOND`. The benchmark uses a temporary database and a deterministic
|
||||
|
||||
Reference in new issue
Block a user