open-agents-ai 0.187.488 → 0.187.489
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/index.js +18 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -521931,6 +521931,8 @@ TASK: ${task}` : task;
|
|
|
521931
521931
|
}
|
|
521932
521932
|
}
|
|
521933
521933
|
try {
|
|
521934
|
+
const STICKY_PER_TURN_CAP = 2;
|
|
521935
|
+
const _candidates = [];
|
|
521934
521936
|
for (const [_stem, _entry] of this._failureReflections.entries()) {
|
|
521935
521937
|
if (this._stickyEscalationsSurfacedThisTurn.has(_stem))
|
|
521936
521938
|
continue;
|
|
@@ -521939,6 +521941,15 @@ TASK: ${task}` : task;
|
|
|
521939
521941
|
const _isEscalation = _entry.attempts >= 3 || (_entry.errorSignatures?.size ?? 0) >= 3;
|
|
521940
521942
|
if (!_isEscalation)
|
|
521941
521943
|
continue;
|
|
521944
|
+
_candidates.push({ stem: _stem, entry: _entry });
|
|
521945
|
+
}
|
|
521946
|
+
_candidates.sort((a2, b) => {
|
|
521947
|
+
const _attemptsDiff = b.entry.attempts - a2.entry.attempts;
|
|
521948
|
+
if (_attemptsDiff !== 0)
|
|
521949
|
+
return _attemptsDiff;
|
|
521950
|
+
return (b.entry.errorSignatures?.size ?? 0) - (a2.entry.errorSignatures?.size ?? 0);
|
|
521951
|
+
});
|
|
521952
|
+
for (const { stem: _stem, entry: _entry } of _candidates.slice(0, STICKY_PER_TURN_CAP)) {
|
|
521942
521953
|
let _body = renderReflectionMessage(_entry);
|
|
521943
521954
|
if (this._runLessons.length > 0) {
|
|
521944
521955
|
const _query = `${this._taskState.goal || ""} ${_entry.wentWrong}`;
|
|
@@ -521980,6 +521991,13 @@ TASK: ${task}` : task;
|
|
|
521980
521991
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
521981
521992
|
});
|
|
521982
521993
|
}
|
|
521994
|
+
if (_candidates.length > STICKY_PER_TURN_CAP) {
|
|
521995
|
+
this.emit({
|
|
521996
|
+
type: "status",
|
|
521997
|
+
content: `REG-45 deferred ${_candidates.length - STICKY_PER_TURN_CAP} additional sticky escalation(s) (cap=${STICKY_PER_TURN_CAP}/turn)`,
|
|
521998
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
521999
|
+
});
|
|
522000
|
+
}
|
|
521983
522001
|
} catch {
|
|
521984
522002
|
}
|
|
521985
522003
|
if (pendingConstraintWarnings.length > 0) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.489",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.489",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED