feat(qmd): install, benchmark, migrate, and remove QMD local search

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian lechnerandClaude Opus 5.5 committed 2026-10-08 11:49:22 +02:00
1 parent 29e712e751
commit 59796d99d7
4 files changed
+425

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# scripts/lib/qmd.sh
#!/usr/bin/env bash
sync_qmd() {
local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6 summary=${7:-false}
local arguments=("$root/scripts/lib/qmd.py" sync --root "$root" --home "$home_path" --client "$client" --enabled "$enabled")
[ "$dry_run" != true ] || arguments+=(--dry-run)
[ "$update" != true ] || arguments+=(--update)
[ "$summary" != true ] || arguments+=(--summary)
python3 "${arguments[@]}"
}
test_qmd_device() {
local root=$1 home_path=$2 summary=${3:-false}
local arguments=("$root/scripts/lib/qmd.py" benchmark --root "$root" --home "$home_path")
[ "$summary" != true ] || arguments+=(--summary)
local status
if python3 "${arguments[@]}" >&2; then return 0; else status=$?; fi
[ "$status" -eq 2 ] && return 1
return 2
}