@caupulican/pi-adaptative 0.80.82 → 0.80.84
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/CHANGELOG.md +15 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-manager.d.ts +3 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +6 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +143 -24
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +41 -6
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/settings.md +4 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
|
@@ -1113,9 +1113,13 @@ export class AgentSession {
|
|
|
1113
1113
|
// =========================================================================
|
|
1114
1114
|
async _runAgentPrompt(messages) {
|
|
1115
1115
|
try {
|
|
1116
|
+
const maxGoalLoopRounds = this.settingsManager.getAutonomySettings().maxStallTurns;
|
|
1117
|
+
this.agent.maxStallTurns = maxGoalLoopRounds;
|
|
1118
|
+
let goalLoopRounds = 1;
|
|
1116
1119
|
await this.agent.prompt(messages);
|
|
1117
|
-
while (await this._handlePostAgentRun()) {
|
|
1120
|
+
while ((maxGoalLoopRounds === 0 || goalLoopRounds < maxGoalLoopRounds) && (await this._handlePostAgentRun())) {
|
|
1118
1121
|
await this.agent.continue();
|
|
1122
|
+
goalLoopRounds++;
|
|
1119
1123
|
}
|
|
1120
1124
|
}
|
|
1121
1125
|
finally {
|