opencode-ralph-loop
Advanced tools
+1
-1
| { | ||
| "name": "opencode-ralph-loop", | ||
| "version": "1.0.5", | ||
| "version": "1.0.6", | ||
| "description": "Minimal Ralph Loop plugin for opencode - auto-continues until task completion", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
+8
-13
@@ -49,5 +49,4 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync, cpSync } from "fs"; | ||
| cpSync(srcSkillDir, destSkillDir, { recursive: true }); | ||
| console.log(`[ralph-loop] Installed skill: ${skill}`); | ||
| } catch (e) { | ||
| console.error(`[ralph-loop] Failed to install skill ${skill}:`, e); | ||
| } catch { | ||
| // Silent fail | ||
| } | ||
@@ -70,5 +69,4 @@ } | ||
| cpSync(srcCmd, destCmd); | ||
| console.log(`[ralph-loop] Installed command: ${cmd}`); | ||
| } catch (e) { | ||
| console.error(`[ralph-loop] Failed to install command ${cmd}:`, e); | ||
| } catch { | ||
| // Silent fail | ||
| } | ||
@@ -181,4 +179,4 @@ } | ||
| } | ||
| } catch (e) { | ||
| console.error("[ralph-loop] Failed to check completion:", e); | ||
| } catch { | ||
| // Silent fail | ||
| } | ||
@@ -291,3 +289,2 @@ | ||
| if (await isComplete(client, sessionId, directory)) { | ||
| console.log("[ralph-loop] Task complete - DONE promise found"); | ||
| clearState(directory); | ||
@@ -298,3 +295,2 @@ return; | ||
| if (state.iteration >= state.maxIterations) { | ||
| console.log(`[ralph-loop] Max iterations (${state.maxIterations}) reached`); | ||
| clearState(directory); | ||
@@ -317,5 +313,4 @@ return; | ||
| }); | ||
| console.log(`[ralph-loop] Injected continuation (iteration ${newState.iteration})`); | ||
| } catch (e) { | ||
| console.error("[ralph-loop] Failed to inject continuation:", e); | ||
| } catch { | ||
| // Silent fail - don't pollute TUI | ||
| } | ||
@@ -322,0 +317,0 @@ } |
21487
-2.65%269
-1.82%