@neriros/ralphy 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +5 -2
- package/dist/mcp/index.js +6014 -1642
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -53547,6 +53547,7 @@ function useLoop(opts) {
|
|
|
53547
53547
|
setProgress(p);
|
|
53548
53548
|
addInfo(`Progress: ${p.checked} done / ${p.unchecked} remaining`);
|
|
53549
53549
|
}
|
|
53550
|
+
const phaseBeforeEngine = currentState.phase;
|
|
53550
53551
|
const prompt = buildTaskPrompt(currentState, taskDir);
|
|
53551
53552
|
const iterStart = new Date().toISOString();
|
|
53552
53553
|
try {
|
|
@@ -53573,14 +53574,16 @@ function useLoop(opts) {
|
|
|
53573
53574
|
lastResult = result2;
|
|
53574
53575
|
}
|
|
53575
53576
|
setConsecutiveFailures(consFailures);
|
|
53576
|
-
|
|
53577
|
+
continue;
|
|
53577
53578
|
}
|
|
53578
53579
|
currentState = updateStateIteration(taskDir, "success", iterStart, opts.engine, opts.model, engineResult.usage);
|
|
53579
53580
|
setState(currentState);
|
|
53580
53581
|
consFailures = 0;
|
|
53581
53582
|
lastResult = "";
|
|
53582
53583
|
setConsecutiveFailures(0);
|
|
53583
|
-
|
|
53584
|
+
if (currentState.phase === phaseBeforeEngine) {
|
|
53585
|
+
currentState = autoTransitionAfterIteration(currentState, taskDir);
|
|
53586
|
+
}
|
|
53584
53587
|
setState(currentState);
|
|
53585
53588
|
setCurrentPhase(currentState.phase);
|
|
53586
53589
|
try {
|