S01: Checkpoint-Tooling eingeführt: checkpoint.cmd + checkpoint.ps1; Regel R7 ergänzt; agent-prompt.md auf Checkpoint-Workflow umgestellt ✅
This commit is contained in:
37
checkpoint.cmd
Normal file
37
checkpoint.cmd
Normal file
@@ -0,0 +1,37 @@
|
||||
@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%
|
||||
Reference in New Issue
Block a user