open-agents-ai 0.104.16 → 0.104.17
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 +40 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47730,22 +47730,47 @@ var init_status_bar = __esm({
|
|
|
47730
47730
|
}
|
|
47731
47731
|
/** Expose gateway status — shown after capability emojis */
|
|
47732
47732
|
_expose = null;
|
|
47733
|
-
/** Blink state for expose icon during active inference */
|
|
47733
|
+
/** Blink state for expose icon during active inference — router LED pattern */
|
|
47734
47734
|
_exposeBlinkOn = true;
|
|
47735
47735
|
_exposeBlinkTimer = null;
|
|
47736
|
+
/** Trail timer — keeps blinking briefly after connections drop */
|
|
47737
|
+
_exposeTrailTimer = null;
|
|
47738
|
+
/** Rolling request count for activity-based trail duration */
|
|
47739
|
+
_exposeRecentReqs = 0;
|
|
47740
|
+
_exposeLastReqCount = 0;
|
|
47736
47741
|
/** Update expose gateway status */
|
|
47737
47742
|
setExposeStatus(status) {
|
|
47738
47743
|
this._expose = status;
|
|
47739
|
-
|
|
47740
|
-
|
|
47741
|
-
|
|
47744
|
+
const newReqs = status.totalRequests - this._exposeLastReqCount;
|
|
47745
|
+
if (newReqs > 0) {
|
|
47746
|
+
this._exposeRecentReqs = Math.min(this._exposeRecentReqs + newReqs, 50);
|
|
47747
|
+
this._exposeLastReqCount = status.totalRequests;
|
|
47748
|
+
}
|
|
47749
|
+
if (status.activeConnections > 0) {
|
|
47750
|
+
if (this._exposeTrailTimer) {
|
|
47751
|
+
clearTimeout(this._exposeTrailTimer);
|
|
47752
|
+
this._exposeTrailTimer = null;
|
|
47753
|
+
}
|
|
47754
|
+
if (!this._exposeBlinkTimer) {
|
|
47755
|
+
this._exposeBlinkTimer = setInterval(() => {
|
|
47756
|
+
this._exposeBlinkOn = !this._exposeBlinkOn;
|
|
47757
|
+
if (this.active)
|
|
47758
|
+
this.renderFooterPreserveCursor();
|
|
47759
|
+
}, 100);
|
|
47760
|
+
}
|
|
47761
|
+
} else if (this._exposeBlinkTimer && !this._exposeTrailTimer) {
|
|
47762
|
+
const trailMs = Math.min(1e3 + this._exposeRecentReqs * 40, 3e3);
|
|
47763
|
+
this._exposeTrailTimer = setTimeout(() => {
|
|
47764
|
+
if (this._exposeBlinkTimer) {
|
|
47765
|
+
clearInterval(this._exposeBlinkTimer);
|
|
47766
|
+
this._exposeBlinkTimer = null;
|
|
47767
|
+
}
|
|
47768
|
+
this._exposeBlinkOn = true;
|
|
47769
|
+
this._exposeTrailTimer = null;
|
|
47770
|
+
this._exposeRecentReqs = Math.max(0, this._exposeRecentReqs - 5);
|
|
47742
47771
|
if (this.active)
|
|
47743
47772
|
this.renderFooterPreserveCursor();
|
|
47744
|
-
},
|
|
47745
|
-
} else if (status.activeConnections === 0 && this._exposeBlinkTimer) {
|
|
47746
|
-
clearInterval(this._exposeBlinkTimer);
|
|
47747
|
-
this._exposeBlinkTimer = null;
|
|
47748
|
-
this._exposeBlinkOn = true;
|
|
47773
|
+
}, trailMs);
|
|
47749
47774
|
}
|
|
47750
47775
|
if (this.active)
|
|
47751
47776
|
this.renderFooterPreserveCursor();
|
|
@@ -47756,8 +47781,13 @@ var init_status_bar = __esm({
|
|
|
47756
47781
|
if (this._exposeBlinkTimer) {
|
|
47757
47782
|
clearInterval(this._exposeBlinkTimer);
|
|
47758
47783
|
this._exposeBlinkTimer = null;
|
|
47759
|
-
this._exposeBlinkOn = true;
|
|
47760
47784
|
}
|
|
47785
|
+
if (this._exposeTrailTimer) {
|
|
47786
|
+
clearTimeout(this._exposeTrailTimer);
|
|
47787
|
+
this._exposeTrailTimer = null;
|
|
47788
|
+
}
|
|
47789
|
+
this._exposeBlinkOn = true;
|
|
47790
|
+
this._exposeRecentReqs = 0;
|
|
47761
47791
|
if (this.active)
|
|
47762
47792
|
this.renderFooterPreserveCursor();
|
|
47763
47793
|
}
|
package/package.json
CHANGED