Bundles the M1 milestone: mock voice pipeline (wsai) + dave/ selfbot voice joiner. Entrypoint dispatches smoke/voice/mock/gpu/join/shell. .env mounted at runtime (not baked). Built GPU-capable via NVIDIA CDI so later STT/TTS drop in. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
903 B
Bash
25 lines
903 B
Bash
#!/usr/bin/env bash
|
|
# Test/run dispatcher for the watch_sceen_ai container.
|
|
#
|
|
# smoke (default) pytest smoke suite (mock pipeline, no deps, no GPU)
|
|
# voice python -m wsai --voice (eyes-free mock voice loop demo)
|
|
# mock python -m wsai (full mock flow, few frames)
|
|
# gpu nvidia-smi — prove the GPU is visible inside the container
|
|
# join node dave/join.mjs — LIVE selfbot voice join (needs .env
|
|
# mounted; honors RUN_MS / GUILD_ID / CHANNEL_ID / SELF_ID)
|
|
# shell drop to bash
|
|
set -euo pipefail
|
|
cd /app
|
|
|
|
cmd="${1:-smoke}"; shift || true
|
|
|
|
case "$cmd" in
|
|
smoke) exec python -m pytest -q ;;
|
|
voice) exec python -m wsai --voice ;;
|
|
mock) exec python -m wsai ;;
|
|
gpu) exec nvidia-smi ;;
|
|
join) cd dave && exec node join.mjs ;;
|
|
shell) exec bash ;;
|
|
*) exec "$cmd" "$@" ;;
|
|
esac
|