增强 8910 日志盯盘与联调可读性:本机落盘 info/error、bat 入口,出站与 echo 打 reply 预览,部署强制 UTF-8。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-13 21:47:05 +08:00
co-authored by Cursor
parent 4d90bba99d
commit 8bdf4990a2
8 changed files with 263 additions and 45 deletions
+31
View File
@@ -0,0 +1,31 @@
@echo off
setlocal EnableExtensions
cd /d "%~dp0"
REM Double-click: follow remote agent 8910 logs. Ctrl+C to stop.
REM Colleague setup: see Watch-Agent8910.colleague.txt (Chinese guide also available).
REM Pass-through args, e.g. Watch-Agent8910.bat -Once
where powershell.exe >nul 2>&1
if errorlevel 1 (
echo ERROR: powershell.exe not found.
goto :end
)
if not exist "%~dp0Watch-Agent8910.ps1" (
echo ERROR: Watch-Agent8910.ps1 missing next to this bat.
goto :end
)
echo Starting Watch-Agent8910 ...
echo Local logs: repo\logs\YYYYMMDD_info.log and _error.log
echo.
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0Watch-Agent8910.ps1" %*
set ERR=%ERRORLEVEL%
echo.
echo Finished. ExitCode=%ERR%
:end
echo.
pause
exit /b %ERR%