Update assistant features and docs
This commit is contained in:
24
scripts/qwen-check.sh
Executable file
24
scripts/qwen-check.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
echo "[qwen-check] Python syntax compile check"
|
||||
python -m compileall app run.py >/dev/null
|
||||
|
||||
echo "[qwen-check] Optional ruff check"
|
||||
if command -v ruff >/dev/null 2>&1; then
|
||||
ruff check app run.py
|
||||
else
|
||||
echo "[qwen-check] ruff not installed, skipping"
|
||||
fi
|
||||
|
||||
echo "[qwen-check] Optional pytest"
|
||||
if command -v pytest >/dev/null 2>&1 && [ -d tests ]; then
|
||||
pytest -q
|
||||
else
|
||||
echo "[qwen-check] tests/ or pytest not found, skipping"
|
||||
fi
|
||||
|
||||
echo "[qwen-check] Done"
|
||||
22
scripts/qwen-context.sh
Executable file
22
scripts/qwen-context.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
OUT="$ROOT/.qwen/project-context.txt"
|
||||
|
||||
{
|
||||
echo "Project: alexander_smart-speaker"
|
||||
echo "Generated: $(date -Iseconds)"
|
||||
echo
|
||||
echo "Top-level files:"
|
||||
find "$ROOT" -maxdepth 2 -type f \
|
||||
! -path '*/.git/*' \
|
||||
! -path '*/venv/*' \
|
||||
! -path '*/__pycache__/*' \
|
||||
| sed "s|$ROOT/||" | sort
|
||||
echo
|
||||
echo "Python modules:"
|
||||
find "$ROOT/app" -type f -name '*.py' | sed "s|$ROOT/||" | sort
|
||||
} > "$OUT"
|
||||
|
||||
echo "[qwen-context] Wrote $OUT"
|
||||
Reference in New Issue
Block a user