leo: ingest skill #2988

Closed
m3taversal wants to merge 11 commits from leo/ingest-skill into main
Showing only changes of commit a25ef69ffa - Show all commits

View file

@ -152,6 +152,7 @@ IMPORTANT: Use the Edit tool to update the source file status. Use the Write too
--permission-mode bypassPermissions \ --permission-mode bypassPermissions \
>> "$LOG" 2>&1 || { >> "$LOG" 2>&1 || {
log "WARN: Claude extraction failed or timed out for $SOURCE_FILE" log "WARN: Claude extraction failed or timed out for $SOURCE_FILE"
sed -i "\|^${SOURCE_FILE}$|d" "$PENDING_FILE"
git checkout main >> "$LOG" 2>&1 git checkout main >> "$LOG" 2>&1
continue continue
} }
@ -160,6 +161,7 @@ IMPORTANT: Use the Edit tool to update the source file status. Use the Write too
CHANGED_FILES=$(git status --porcelain) CHANGED_FILES=$(git status --porcelain)
if [ -z "$CHANGED_FILES" ]; then if [ -z "$CHANGED_FILES" ]; then
log "No changes produced for $SOURCE_FILE" log "No changes produced for $SOURCE_FILE"
sed -i "\|^${SOURCE_FILE}$|d" "$PENDING_FILE"
git checkout main >> "$LOG" 2>&1 git checkout main >> "$LOG" 2>&1
continue continue
fi fi
@ -179,6 +181,7 @@ IMPORTANT: Use the Edit tool to update the source file status. Use the Write too
# Check if anything was staged # Check if anything was staged
if git diff --cached --quiet; then if git diff --cached --quiet; then
log "No valid changes to commit for $SOURCE_FILE" log "No valid changes to commit for $SOURCE_FILE"
sed -i "\|^${SOURCE_FILE}$|d" "$PENDING_FILE"
git checkout -- . >> "$LOG" 2>&1 git checkout -- . >> "$LOG" 2>&1
git checkout main >> "$LOG" 2>&1 git checkout main >> "$LOG" 2>&1
continue continue