Files
smart-speaker/scripts/qwen-context.sh

23 lines
541 B
Bash
Executable File

#!/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"