@caupulican/pi-adaptative 0.81.21 → 0.81.22
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 +7 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +4 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/model-router/intent-classifier.d.ts.map +1 -1
- package/dist/core/model-router/intent-classifier.js +1 -1
- package/dist/core/model-router/intent-classifier.js.map +1 -1
- package/dist/core/model-router/route-judge.d.ts.map +1 -1
- package/dist/core/model-router/route-judge.js +10 -6
- package/dist/core/model-router/route-judge.js.map +1 -1
- package/dist/core/model-router/tool-escalation.d.ts.map +1 -1
- package/dist/core/model-router/tool-escalation.js +2 -1
- package/dist/core/model-router/tool-escalation.js.map +1 -1
- package/dist/core/model-router-controller.d.ts.map +1 -1
- package/dist/core/model-router-controller.js +27 -2
- package/dist/core/model-router-controller.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +3 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +25 -1
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- 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
|
@@ -3091,7 +3091,7 @@ export class AgentSession {
|
|
|
3091
3091
|
willRetry: false,
|
|
3092
3092
|
skipReason: "no model selected",
|
|
3093
3093
|
});
|
|
3094
|
-
return
|
|
3094
|
+
return hadQueuedMessages || this.agent.hasQueuedMessages();
|
|
3095
3095
|
}
|
|
3096
3096
|
const contextWindow = model.contextWindow;
|
|
3097
3097
|
const margin = Math.max(0, Math.floor(0.01 * contextWindow));
|
|
@@ -3180,13 +3180,13 @@ export class AgentSession {
|
|
|
3180
3180
|
if (outcome.kind === "failed") {
|
|
3181
3181
|
if (outcome.reason === "aborted") {
|
|
3182
3182
|
this._emit({ type: "compaction_end", reason, result: undefined, aborted: true, willRetry: false });
|
|
3183
|
-
return
|
|
3183
|
+
return hadQueuedMessages || this.agent.hasQueuedMessages();
|
|
3184
3184
|
}
|
|
3185
3185
|
throw new Error(outcome.reason);
|
|
3186
3186
|
}
|
|
3187
3187
|
if (extensionCancelled || signal.aborted) {
|
|
3188
3188
|
this._emit({ type: "compaction_end", reason, result: undefined, aborted: true, willRetry: false });
|
|
3189
|
-
return
|
|
3189
|
+
return hadQueuedMessages || this.agent.hasQueuedMessages();
|
|
3190
3190
|
}
|
|
3191
3191
|
const result = outcome.kind === "success" ? outcome.result : lastCompaction;
|
|
3192
3192
|
if (!result) {
|
|
@@ -3215,7 +3215,7 @@ export class AgentSession {
|
|
|
3215
3215
|
? `Context overflow recovery failed: ${errorMessage}`
|
|
3216
3216
|
: `Auto-compaction failed: ${errorMessage}`,
|
|
3217
3217
|
});
|
|
3218
|
-
return
|
|
3218
|
+
return hadQueuedMessages || this.agent.hasQueuedMessages();
|
|
3219
3219
|
}
|
|
3220
3220
|
finally {
|
|
3221
3221
|
this._autoCompactionAbortController = undefined;
|