38 lines
1016 B
Batchfile
38 lines
1016 B
Batchfile
@echo off
|
|
REM ============================================================
|
|
REM checkpoint.cmd
|
|
REM ------------------------------------------------------------
|
|
REM Haengt einen Eintrag an changelog.md an (mit Timestamp vom
|
|
REM lokalen PC) und macht einen Git-Commit.
|
|
REM
|
|
REM Voraussetzung: Die Datei .checkpoint-pending.txt existiert
|
|
REM im selben Ordner und enthaelt:
|
|
REM Zeile 1: Session-Nummer (z.B. S02)
|
|
REM Zeile 2+: Kompakte Zusammenfassung
|
|
REM ============================================================
|
|
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
if not exist ".checkpoint-pending.txt" (
|
|
echo.
|
|
echo [checkpoint] Fehler: .checkpoint-pending.txt nicht gefunden.
|
|
echo Der KI-Agent muss diese Datei zuerst anlegen.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0checkpoint.ps1"
|
|
set RC=%ERRORLEVEL%
|
|
|
|
echo.
|
|
if %RC% neq 0 (
|
|
echo [checkpoint] FEHLGESCHLAGEN - siehe Meldungen oben.
|
|
) else (
|
|
echo [checkpoint] Erfolgreich abgeschlossen.
|
|
)
|
|
echo.
|
|
pause
|
|
exit /b %RC%
|