A crashed voice line on Windows closed its window before the error could be read, turning every failure into a mystery report. start.bat now holds the window with a pointer to the log when the process exits nonzero; a clean goodbye still closes quietly.
58 lines
2.1 KiB
Batchfile
58 lines
2.1 KiB
Batchfile
@echo off
|
|
rem fullstack-agent: give your AI a full stack — memory, voice, face, hands.
|
|
rem Copyright (C) 2026 Jared Rhodenizer
|
|
rem
|
|
rem This program is free software: you can redistribute it and/or modify
|
|
rem it under the terms of the GNU Affero General Public License as published
|
|
rem by the Free Software Foundation, either version 3 of the License, or
|
|
rem (at your option) any later version.
|
|
rem
|
|
rem This program is distributed in the hope that it will be useful,
|
|
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
rem GNU Affero General Public License for more details.
|
|
rem
|
|
rem You should have received a copy of the GNU Affero General Public License
|
|
rem along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
rem
|
|
rem SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
rem Starts the agent's pieces. Each server gets its own window;
|
|
rem close the windows (or this one for the voice) to stop.
|
|
rem start.bat everything installed
|
|
rem start.bat voice the voice and the face (no hands)
|
|
rem start.bat hands the voice and the hands board (no face)
|
|
|
|
cd /d "%~dp0.."
|
|
|
|
if exist "ai-visualizer\" if not "%1"=="hands" (
|
|
echo face: starting
|
|
start "agent face" cmd /c "cd ai-visualizer && run.bat"
|
|
)
|
|
|
|
if exist "barehands\" if not "%1"=="voice" (
|
|
echo hands: starting
|
|
rem if errorlevel reads the where result at run time. A percent-style
|
|
rem check here would expand when this block is parsed and test a stale value.
|
|
where py >nul 2>nul
|
|
if errorlevel 1 (
|
|
start "agent hands" cmd /c "cd barehands && python server.py"
|
|
) else (
|
|
start "agent hands" cmd /c "cd barehands && py server.py"
|
|
)
|
|
)
|
|
|
|
if exist "backtalk\" (
|
|
echo voice: starting in this window. Close it to hang up.
|
|
cd backtalk
|
|
uv run python -m backtalk.main
|
|
rem A clean goodbye exits 0 and the window may close. An error exits
|
|
rem nonzero, and the window HOLDS so the message can be read.
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo The voice line stopped with an error. The message is above.
|
|
echo The log lives in backtalk\logs\backtalk.log
|
|
pause
|
|
)
|
|
)
|