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
@@ -55,6 +55,16 @@ if resolve_python; then
|
||||
else
|
||||
result FAIL "$(python_missing_message) Without it, build validation fails and the completion-evidence, correction-prompt, and session-state hooks are silently skipped."
|
||||
fi
|
||||
# QMD local search: reports nothing when the setup did not enable it.
|
||||
if resolve_python; then
|
||||
if qmd_output=$(run_python "$root/scripts/lib/qmd.py" doctor --root "$root" --home "$home_path" 2>&1); then
|
||||
while IFS= read -r line; do
|
||||
case "$line" in PASS\ *|WARN\ *|FAIL\ *) result "${line%% *}" "${line#* }" ;; esac
|
||||
done <<< "$qmd_output"
|
||||
else
|
||||
result WARN "QMD checks failed: ${qmd_output//$'\n'/ }"
|
||||
fi
|
||||
fi
|
||||
|
||||
source_agent_count=$(find "$root/shared/agents" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
|
||||
source_skill_count=$(find "$root/shared/skills" -name SKILL.md | wc -l)
|
||||
|
||||
Reference in new issue
Block a user