@rowan-agent/agent 0.35.2 → 0.35.3

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.
Files changed (2) hide show
  1. package/dist/runtime.js +3 -0
  2. package/package.json +1 -1
package/dist/runtime.js CHANGED
@@ -2726,6 +2726,7 @@ async function executePhaseWithModel(ctx) {
2726
2726
  });
2727
2727
  await ctx.messageManager.end(messageId);
2728
2728
  }
2729
+ ctx.progressed = true;
2729
2730
  }
2730
2731
  }
2731
2732
  async function runTurn(fn) {
@@ -2749,6 +2750,7 @@ async function runPhaseLoop(config, state, registry) {
2749
2750
  if (resumingSuspendedRun) {
2750
2751
  state.status = "running";
2751
2752
  delete state.entryPhases;
2753
+ state.attempt = 0;
2752
2754
  }
2753
2755
  let previousPayload = resumingSuspendedRun ? state.continuation && Object.hasOwn(state.continuation, "previousPayload") ? state.continuation.previousPayload : state.initialPhasePayload : state.initialPhasePayload;
2754
2756
  let previousPhaseMsgId = resumingSuspendedRun ? state.continuation?.previousPhaseMessageId : void 0;
@@ -2993,6 +2995,7 @@ async function runPhaseLoop(config, state, registry) {
2993
2995
  }
2994
2996
  const runtime = { phase, config, state, execution, messageManager, registry, context: phaseContext, completedPhases };
2995
2997
  let output = await executePhase(runtime);
2998
+ if (runtime.progressed) state.attempt = 0;
2996
2999
  delete state.initialPhasePayload;
2997
3000
  delete state.entryPhases;
2998
3001
  let modelRouteDecision = resolveModelRouteDecision(output.toolCalls, registry, state);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.35.2",
3
+ "version": "0.35.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",